mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Fixed a slight issue where we could click the change folders button rather than the dropdown arrow #1189
This commit is contained in:
parent
e420d03a77
commit
5095d30a3c
2 changed files with 10 additions and 5 deletions
9
Ombi.UI/Content/requests.js
vendored
9
Ombi.UI/Content/requests.js
vendored
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue