]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix elements disabling in "Symbols" tab
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 29 May 2018 09:17:03 +0000 (12:17 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 29 May 2018 09:17:03 +0000 (12:17 +0300)
interface/js/app/symbols.js

index cc38cacfc1e9ef9e1916ee9379d2161c1f05288c..7983ccc7f01b2e6265dcf83349cc2a88ce48ca6d 100644 (file)
@@ -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);