commit 197de4b: [Minor] Avoid double quotes escaping
moisseev
moiseev at mezonplus.ru
Sun Aug 9 18:28:07 UTC 2020
Author: moisseev
Date: 2020-08-08 16:04:27 +0300
URL: https://github.com/rspamd/rspamd/commit/197de4bd384b8c8b554eae400f69a7a0c33d667a
[Minor] Avoid double quotes escaping
---
interface/js/app/stats.js | 16 ++++++++--------
1 file 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();
More information about the Commits
mailing list