aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/stats.js
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-08-08 16:04:27 +0300
committermoisseev <moiseev@mezonplus.ru>2020-08-08 16:04:27 +0300
commit197de4bd384b8c8b554eae400f69a7a0c33d667a (patch)
treea1732aa5130a6f4db21a04210eb8dfd552a0a945 /interface/js/app/stats.js
parent3e426f8515a7201a32b0810c9f85ef8d8a0fc3ab (diff)
downloadrspamd-197de4bd384b8c8b554eae400f69a7a0c33d667a.tar.gz
rspamd-197de4bd384b8c8b554eae400f69a7a0c33d667a.zip
[Minor] Avoid double quotes escaping
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r--interface/js/app/stats.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js
index ebc37ef02..299b02aad 100644
--- a/interface/js/app/stats.js
+++ b/interface/js/app/stats.js
@@ -125,23 +125,23 @@ define(["jquery", "d3pie"],
short_id = val.data.config_id.substring(0, 8);
}
- $("#clusterTable tbody").append("<tr class=\"" + row_class + "\">" +
- "<td class=\"align-middle\"><input type=\"radio\" class=\"form-check m-auto\" name=\"clusterName\" value=\"" + key + "\"></td>" +
+ $("#clusterTable tbody").append('<tr class="' + row_class + '">' +
+ '<td class="align-middle"><input type="radio" class="form-check m-auto" name="clusterName" value="' + key + '"></td>' +
"<td>" + key + "</td>" +
"<td>" + val.host + "</td>" +
- "<td class=\"text-center\"><span class=\"icon\"><i class=\"" + glyph_status + "\"></i></span></td>" +
+ '<td class="text-center"><span class="icon"><i class="' + glyph_status + '"></i></span></td>' +
'<td class="text-right">' + uptime + "</td>" +
"<td>" + version + "</td>" +
"<td>" + short_id + "</td></tr>");
- $("#selSrv").append($("<option value=\"" + key + "\">" + key + "</option>"));
+ $("#selSrv").append($('<option value="' + key + '">' + key + "</option>"));
if (checked_server === key) {
- $("#clusterTable tbody [value=\"" + key + "\"]").prop("checked", true);
- $("#selSrv [value=\"" + key + "\"]").prop("selected", true);
+ $('#clusterTable tbody [value="' + key + '"]').prop("checked", true);
+ $('#selSrv [value="' + key + '"]').prop("selected", true);
} else if (!val.status) {
- $("#clusterTable tbody [value=\"" + key + "\"]").prop("disabled", true);
- $("#selSrv [value=\"" + key + "\"]").prop("disabled", true);
+ $('#clusterTable tbody [value="' + key + '"]').prop("disabled", true);
+ $('#selSrv [value="' + key + '"]').prop("disabled", true);
}
});
$(widgets).show();