From d9fe14a0123eb90008a1be4b6ab9bb21b42f3776 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Feb 2021 15:09:53 +0300 Subject: use template strings in a bunch of places instead of id concatenation --- js/PrefLabelTree.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'js/PrefLabelTree.js') diff --git a/js/PrefLabelTree.js b/js/PrefLabelTree.js index 627b2cfbe..2b78927c2 100644 --- a/js/PrefLabelTree.js +++ b/js/PrefLabelTree.js @@ -63,8 +63,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f editLabel: function(id) { xhr.json("backend.php", {op: "pref-labels", method: "edit", id: id}, (reply) => { - console.log(reply); - const fg_color = reply['fg_color']; const bg_color = reply['bg_color'] ? reply['bg_color'] : '#fff7d5'; @@ -87,7 +85,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f color = bg; } - const e = App.byId("icon-label-" + id); + const e = App.byId(`icon-label-${id}`); if (e) { if (bg) e.style.color = bg; -- cgit v1.2.3