diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-11 11:13:40 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-11 11:45:37 +0300 |
commit | 99cf8eafc4f6cae6e6187dfa929da756536dbeb8 (patch) | |
tree | 17d63823374c46fabdb1b1106002cc30a57648cd /interface/js/app/config.js | |
parent | f98d6e900feba2726ea548895b645d9455656d57 (diff) | |
download | rspamd-99cf8eafc4f6cae6e6187dfa929da756536dbeb8.tar.gz rspamd-99cf8eafc4f6cae6e6187dfa929da756536dbeb8.zip |
[WebUI] Do not redeclare variables
Diffstat (limited to 'interface/js/app/config.js')
-rw-r--r-- | interface/js/app/config.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js index a64e8f3ab..160061694 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -77,10 +77,11 @@ define(["jquery"], $tbody = $("<tbody>"); $.each(data, function (i, item) { + var label; if ((item.editable === false || rspamd.read_only)) { - var label = "<span class=\"label label-default\">Read</span>"; + label = "<span class=\"label label-default\">Read</span>"; } else { - var label = "<span class=\"label label-default\">Read</span> <span class=\"label label-success\">Write</span>"; + label = "<span class=\"label label-default\">Read</span> <span class=\"label label-success\">Write</span>"; } var $tr = $("<tr>"); $("<td class=\"col-md-2 maps-cell\">" + label + "</td>").appendTo($tr); |