mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of https://github.com/wso2/carbon-device-mgt
This commit is contained in:
commit
9ceb031677
@ -92,6 +92,7 @@ $(document).ready(function () {
|
||||
$("a#save-policy-priorities-success-link").click(function () {
|
||||
hidePopup();
|
||||
});
|
||||
$(applyChangesBtn).prop("disabled", false);
|
||||
}
|
||||
},
|
||||
// on error
|
||||
|
||||
@ -22,6 +22,7 @@ var sortableListFunction = (function () {
|
||||
|
||||
var sortableElem = '.wr-sortable',
|
||||
sortUpdateBtn = '#sortUpdateBtn',
|
||||
applyChangesBtn = '#applyChangesBtn',
|
||||
sortableElemList = [],
|
||||
sortedIDs,
|
||||
currentElemId,
|
||||
@ -103,6 +104,7 @@ var sortableListFunction = (function () {
|
||||
insertBefore('span[place="place_' + newValue + '"]');
|
||||
}
|
||||
$(sortUpdateBtn).prop('disabled', false);
|
||||
$(applyChangesBtn).prop('disabled', true);
|
||||
sortedIDs = $(sortableElem).sortable('toArray');
|
||||
addSortableIndexNumbers();
|
||||
}
|
||||
@ -126,6 +128,7 @@ var sortableListFunction = (function () {
|
||||
sortedIDs = $(this).sortable('toArray');
|
||||
addSortableIndexNumbers();
|
||||
$(sortUpdateBtn).prop('disabled', false);
|
||||
$(applyChangesBtn).prop('disabled', true);
|
||||
}
|
||||
});
|
||||
$(sortableElem).disableSelection();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user