]> source.dussan.org Git - rspamd.git/commitdiff
Fix saving after table updates 1550/head
authorandryyy <andre.peters@debinux.de>
Thu, 23 Mar 2017 09:55:32 +0000 (10:55 +0100)
committerandryyy <andre.peters@debinux.de>
Thu, 23 Mar 2017 09:55:32 +0000 (10:55 +0100)
interface/js/app/symbols.js

index f0c3d477030353832bfa415a4be17ce39a6c1c10..725e221299e110102787f5ec029df29a8398550a 100644 (file)
@@ -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) {