diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-11 11:47:31 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-11 11:47:31 +0300 |
commit | 01ab7eaa51df70adc6cd1e9d9e34d00957c2357a (patch) | |
tree | 3e82d4c54c53d94b4cc039cfdd38c79624928e09 /interface/js | |
parent | 99cf8eafc4f6cae6e6187dfa929da756536dbeb8 (diff) | |
download | rspamd-01ab7eaa51df70adc6cd1e9d9e34d00957c2357a.tar.gz rspamd-01ab7eaa51df70adc6cd1e9d9e34d00957c2357a.zip |
[WebUI] Initialize variables at declaration
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/app/stats.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 25e061783..19b1d72a7 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -104,8 +104,8 @@ define(["jquery", "d3pie", "humanize"], $("#clusterTable tbody").empty(); $("#selSrv").empty(); $.each(servers, function (key, val) { - var glyph_status; - var short_id; + var glyph_status = "glyphicon glyphicon-remove-circle"; + var short_id = "???"; if (!("config_id" in val.data)) { val.data.config_id = ""; } @@ -113,10 +113,6 @@ define(["jquery", "d3pie", "humanize"], glyph_status = "glyphicon glyphicon-ok-circle"; short_id = val.data.config_id.substring(0, 8); } - else { - glyph_status = "glyphicon glyphicon-remove-circle"; - short_id = "???"; - } $("#clusterTable tbody").append("<tr>" + "<td class=\"col1\" title=\"Radio\"><input type=\"radio\" class=\"form-control radio\" name=\"clusterName\" value=\"" + key + "\"></td>" + |