From 18be7f053b6a7a8cd19a7340466b68f579eb33cd Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 1 Jul 2016 16:38:36 +0200 Subject: Implement tags and various other minor tweaks --- web/js/nms-info-box.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'web/js/nms-info-box.js') diff --git a/web/js/nms-info-box.js b/web/js/nms-info-box.js index ca5b6c7..535069f 100644 --- a/web/js/nms-info-box.js +++ b/web/js/nms-info-box.js @@ -833,12 +833,18 @@ var switchEditPanel = function () { nmsInfoBox._editValues = {}; var place; + var tags; for (var v in swi) { if (v == "placement") { place = JSON.stringify(swi[v]); template[v] = place; continue; } + if (v == "tags") { + tags = JSON.stringify(swi[v]); + template[v] = tags; + continue; + } template[v] = nmsInfoBox._nullBlank(swi[v]); } for (var v in swm) { @@ -895,6 +901,12 @@ var switchEditPanel = function () { pval.value = place; } } + if (tags) { + var ptags = document.getElementById("edit-" + this.sw + "-tags"); + if (ptags) { + ptags.value = tags; + } + } }; this.save = function () { -- cgit v1.2.3