summaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorandryyy <andre.peters@debinux.de>2017-03-23 10:55:32 +0100
committerandryyy <andre.peters@debinux.de>2017-03-23 10:55:32 +0100
commit05caad5caa744158a497b5576a3e89e4361df1d6 (patch)
tree92ede7880a865cb57326b1dc6c90abb6c2bba01f /interface
parentfcf5395e8a9cced96b29fcb67cbe1364a65d3b80 (diff)
downloadrspamd-05caad5caa744158a497b5576a3e89e4361df1d6.tar.gz
rspamd-05caad5caa744158a497b5576a3e89e4361df1d6.zip
Fix saving after table updates
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/symbols.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index f0c3d4770..725e22129 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -239,12 +239,6 @@ function($) {
components: {
filtering: FooTable.groupFilter
}
- }, function tableHook() {
- $('#symbolsTable :button').on('click', function() {
- var value = $(this).data('save');
- if (!value) return
- saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == 'cluster');
- });
});
if (rspamd.read_only) {
$( ".mb-disabled" ).attr('disabled', true);
@@ -254,6 +248,11 @@ function($) {
rspamd.alertMessage('alert-modal alert-error', data.statusText);
}
});
+ $(document).on("click", "#symbolsTable :button", function(event){
+ var value = $(this).data('save');
+ if (!value) return
+ saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == 'cluster');
+ });
};
interface.setup = function(rspamd, tables) {