diff options
author | André Peters <andre.peters@debinux.de> | 2019-11-02 08:40:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-02 08:40:37 +0100 |
commit | 152b8721ea3e36de7eb9491d9321fd9d9d9ad6aa (patch) | |
tree | 0880e389328066c894817cd56cd8118942951e97 | |
parent | 63f47bc68b8025ead4549fc04fa9c554b7db4eab (diff) | |
download | rspamd-152b8721ea3e36de7eb9491d9321fd9d9d9ad6aa.tar.gz rspamd-152b8721ea3e36de7eb9491d9321fd9d9d9ad6aa.zip |
Remove prev form when clicking outside the modal
1. Function is triggered by click on close button **and** by clicking anywhere outside the modal to close it.
2. Form is being removed instead of hidden.
-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) { |