From a43f0ea75773a89d6a32545a60922fdb7aa07b8b Mon Sep 17 00:00:00 2001 From: Grammatopoulos Athanasios-Vasileios Date: Wed, 13 Nov 2019 08:06:43 +0200 Subject: [PATCH] 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 --- includes/html/modal/alert_rule_collection.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/html/modal/alert_rule_collection.inc.php b/includes/html/modal/alert_rule_collection.inc.php index a3593f4498..aefd34fe58 100644 --- a/includes/html/modal/alert_rule_collection.inc.php +++ b/includes/html/modal/alert_rule_collection.inc.php @@ -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); }