diff --git a/Ombi.UI/Content/requests.js b/Ombi.UI/Content/requests.js index 132bb7232..b902c1560 100644 --- a/Ombi.UI/Content/requests.js +++ b/Ombi.UI/Content/requests.js @@ -567,16 +567,21 @@ $(document).on("click", ".change-root-folder", function (e) { e.preventDefault(); var $this = $(this); var $button = $this.parents('.btn-split').children('.change').first(); - var rootFolderId = e.target.id + var rootFolderId = e.target.id; var $form = $this.parents('form').first(); + var requestId = $button.attr('id'); + if ($button.text() === " Loading...") { return; } - loadingButton($button.attr('id'), "success"); + loadingButton(requestId, "success"); changeRootFolder($form, rootFolderId, function () { + if ($('#' + requestId + "rootPathMain").length) { + $('#' + requestId + "currentRootPath").text($this.text); + } }); }); diff --git a/Ombi.UI/Views/Requests/Index.cshtml b/Ombi.UI/Views/Requests/Index.cshtml index e94decd85..710339fe4 100644 --- a/Ombi.UI/Views/Requests/Index.cshtml +++ b/Ombi.UI/Views/Requests/Index.cshtml @@ -245,7 +245,7 @@