diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-17 13:45:18 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-17 13:45:18 +0300 |
commit | 731af4c2a3f1052a3393d22f9ca6703821fd4429 (patch) | |
tree | 36ade9d697cc92a13201ac4b7b79ffe3c7ef4626 /interface/js/app/config.js | |
parent | 954727f41c7ed5449206f035d4015d30b6c92f13 (diff) | |
download | rspamd-731af4c2a3f1052a3393d22f9ca6703821fd4429.tar.gz rspamd-731af4c2a3f1052a3393d22f9ca6703821fd4429.zip |
[Minor] Remove extra parentheses
Diffstat (limited to 'interface/js/app/config.js')
-rw-r--r-- | interface/js/app/config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js index 58132dc41..5ab24f9ef 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -145,7 +145,7 @@ define(["jquery"], var $tbody = $("<tbody>"); $.each(data, function (i, item) { - var label = ((item.editable === false || rspamd.read_only)) + var label = (item.editable === false || rspamd.read_only) ? "<span class=\"label label-default\">Read</span>" : "<span class=\"label label-default\">Read</span> <span class=\"label label-success\">Write</span>"; var $tr = $("<tr>"); @@ -179,7 +179,7 @@ define(["jquery"], success: function (data) { var disabled = ""; var text = data[0].data; - if ((item.editable === false || rspamd.read_only)) { + if (item.editable === false || rspamd.read_only) { disabled = "disabled=\"disabled\""; } |