diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-02 09:45:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-02 09:45:10 +0000 |
commit | e4a066c260093de2048d1e352feb9ad595eac2d9 (patch) | |
tree | 0d276c37626b8b464b8ff625a7aa4422675a2fa3 | |
parent | 776c076172699e8c23fb2e6116f59786f6916a33 (diff) | |
parent | 152b8721ea3e36de7eb9491d9321fd9d9d9ad6aa (diff) | |
download | rspamd-e4a066c260093de2048d1e352feb9ad595eac2d9.tar.gz rspamd-e4a066c260093de2048d1e352feb9ad595eac2d9.zip |
Merge pull request #3132 from andryyy/patch-15
[WebUI] Remove prev form when clicking outside the modal
-rw-r--r-- | interface/js/app/config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js index 701640f91..2e0b955cb 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -203,8 +203,8 @@ define(["jquery"], return false; }); // close modal without saving - $("[data-dismiss=\"modal\"]").on("click", function () { - $("#modalBody form").hide(); + $("#modalDialog").on('hidden.bs.modal', function () { + $("#modalBody form").remove(); }); // @save forms from modal function saveMap(server) { |