aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-21 18:54:23 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-21 18:54:23 +0300
commit5bb5da8dda84638122b83b908927931cf9428965 (patch)
tree82bcf86652472e3f6b26db0f9c7879a2413f3e28 /interface
parentfc49b6186c1755b2ee53b91e1a8e41ef27a5854d (diff)
downloadrspamd-5bb5da8dda84638122b83b908927931cf9428965.tar.gz
rspamd-5bb5da8dda84638122b83b908927931cf9428965.zip
[WebUI] Remove previously-attached event handlers
from save buttons on the "Symbols" tab
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/symbols.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index 75234b09e..548411a6a 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -250,11 +250,13 @@ define(["jquery", "footable"],
rspamd.alertMessage("alert-modal alert-error", data.statusText);
}
});
- $(document).on("click", "#symbolsTable :button", function () {
- var value = $(this).data("save");
- if (!value) return;
- saveSymbols(rspamd, "./savesymbols", "symbolsTable", value === "cluster");
- });
+ $("#symbolsTable")
+ .off("click", ":button")
+ .on("click", ":button", function () {
+ var value = $(this).data("save");
+ if (!value) return;
+ saveSymbols(rspamd, "./savesymbols", "symbolsTable", value === "cluster");
+ });
};
ui.setup = function (rspamd) {