From 05caad5caa744158a497b5576a3e89e4361df1d6 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 23 Mar 2017 10:55:32 +0100 Subject: [PATCH] Fix saving after table updates --- interface/js/app/symbols.js | 11 +++++------ 1 file 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) { -- 2.39.5