From: moisseev Date: Sun, 3 Dec 2023 14:03:39 +0000 (+0300) Subject: [Minor] Use single quotes rather than escapes X-Git-Tag: 3.8.0~48^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28cc2ed5fb4ed26649d4fa2f8eae25a3449f6b5a;p=thirdparty%2Frspamd.git [Minor] Use single quotes rather than escapes --- diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index d357151887..fdc31f3e60 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -30,7 +30,7 @@ define(["jquery", "app/rspamd", "footable"], const ui = {}; function saveSymbols(action, id, server) { - const inputs = $("#" + id + " :input[data-role=\"numerictextbox\"]"); + const inputs = $("#" + id + ' :input[data-role="numerictextbox"]'); const url = action; const values = []; $(inputs).each(function () { @@ -75,10 +75,9 @@ define(["jquery", "app/rspamd", "footable"], } else if (item.weight > 0) { label_class = "scorebar-spam"; } - item.weight = ""; + item.weight = ''; if (!item.time) { item.time = 0; } @@ -93,12 +92,10 @@ define(["jquery", "app/rspamd", "footable"], distinct_groups.push(item.group); } item.save = - " " + - ""; + ' ' + + ''; items.push(item); }); });