aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2019-01-09 01:47:41 +0100
committerKristian Lyngstol <kly@kly.no>2019-01-09 01:47:41 +0100
commitb12f5f461f4d135fc2590baadc9eedb01162b2f3 (patch)
treeecf9f71dd32dfe76ec37cdd4935a417a70b3f3ee
parent40ebbe2e0236b4cf3d5c91a7b21e286728800325 (diff)
Fix switch-deletion in frontend after misspell
-rw-r--r--web/js/nms-ui-switch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/nms-ui-switch.js b/web/js/nms-ui-switch.js
index 326db1c..b15c6ac 100644
--- a/web/js/nms-ui-switch.js
+++ b/web/js/nms-ui-switch.js
@@ -52,8 +52,8 @@ class nmsModSwitch extends nmsBox {
}
del(e) {
- if(confirm("This will delete the switch: " + this.nmsBox._sw)) {
- this.nmsBox.panel.commit([{'sysname': this.nmsBox.panel.sw, 'deleted': true}]);
+ if(confirm("This will delete the switch: " + this.nmsBox.panel._sw)) {
+ this.nmsBox.panel.commit([{'sysname': this.nmsBox.panel._sw, 'deleted': true}]);
};
}
save(e) {