From: andryyy Date: Thu, 23 Mar 2017 09:55:32 +0000 (+0100) Subject: Fix saving after table updates X-Git-Tag: 1.5.4~56^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1550%2Fhead;p=thirdparty%2Frspamd.git Fix saving after table updates --- diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index f0c3d47703..725e221299 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) {