diff options
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/symbols.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index cc38cacfc..7983ccc7f 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -239,11 +239,15 @@ function($) { }, components: { filtering: FooTable.groupFilter + }, + "on": { + "ready.ft.table": function () { + if (rspamd.read_only) { + $(".mb-disabled").attr('disabled', true); + } + } } }); - if (rspamd.read_only) { - $( ".mb-disabled" ).attr('disabled', true); - } }, error: function (data) { rspamd.alertMessage('alert-modal alert-error', data.statusText); |