diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-05-29 12:17:03 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-05-29 12:17:03 +0300 |
commit | cb658a76c86c8a0dca850b3204d2bd1ebf6b03f0 (patch) | |
tree | a8cdab5bee93359b2ba48125cfc4ffbf4a9cec01 /interface | |
parent | 765758c28384ddbeb58d5954f888ef5b2f918a3b (diff) | |
download | rspamd-cb658a76c86c8a0dca850b3204d2bd1ebf6b03f0.tar.gz rspamd-cb658a76c86c8a0dca850b3204d2bd1ebf6b03f0.zip |
[WebUI] Fix elements disabling in "Symbols" tab
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); |