commit 152b872: Remove prev form when clicking outside the modal
GitHub
noreply at github.com
Sat Nov 2 09:49:06 UTC 2019
Author: André Peters
Date: 2019-11-02 08:40:37 +0100
URL: https://github.com/rspamd/rspamd/commit/152b8721ea3e36de7eb9491d9321fd9d9d9ad6aa (refs/pull/3132/head)
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.
---
interface/js/app/config.js | 4 ++--
1 file 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) {
More information about the Commits
mailing list