summaryrefslogtreecommitdiff
path: root/js/PrefLabelTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-19 15:09:53 +0300
committerAndrew Dolgov <[email protected]>2021-02-19 15:09:53 +0300
commitd9fe14a0123eb90008a1be4b6ab9bb21b42f3776 (patch)
treed88bdeaad474417a646fc2e3c38e423468f13a83 /js/PrefLabelTree.js
parent131f34648d8b8fa8388f619c144480e06f5f9921 (diff)
use template strings in a bunch of places instead of id concatenation
Diffstat (limited to 'js/PrefLabelTree.js')
-rw-r--r--js/PrefLabelTree.js4
1 files changed, 1 insertions, 3 deletions
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;