diff options
Diffstat (limited to 'interface/js/app/symbols.js')
-rw-r--r-- | interface/js/app/symbols.js | 11 |
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) { |