mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
UI bug fix - Scroll disabled on "new rule from collection" modal (#10796)
* Wait modal to close before opening a new one * Improved based on @Jellyfrog's suggestion
This commit is contained in:
committed by
Tony Murray
parent
6e99e897e9
commit
a43f0ea757
@@ -83,9 +83,11 @@ if (!Auth::user()->hasGlobalAdmin()) {
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
if (data.status == 'ok') {
|
||||
$("#search_rule_modal").one('hidden.bs.modal', function(event) {
|
||||
loadRule(data);
|
||||
$('#create-alert').modal('show');
|
||||
});
|
||||
$("#search_rule_modal").modal('hide');
|
||||
loadRule(data);
|
||||
$('#create-alert').modal('show');
|
||||
} else {
|
||||
toastr.error(data.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user