aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-info-box.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-07-01 16:38:36 +0200
committerKristian Lyngstol <kly@kly.no>2016-07-01 16:38:36 +0200
commit18be7f053b6a7a8cd19a7340466b68f579eb33cd (patch)
tree5b340a37751ea9c9da799ba124cd0a9a4f4e8344 /web/js/nms-info-box.js
parentf3e530f42e350f17f42cf3f8f0f310f433effef9 (diff)
Implement tags and various other minor tweaks
Diffstat (limited to 'web/js/nms-info-box.js')
-rw-r--r--web/js/nms-info-box.js12
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 () {