diff options
Diffstat (limited to 'web/js/nms-info-box.js')
-rw-r--r-- | web/js/nms-info-box.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 () { |