diff options
author | Kristian Lyngstol <kly@kly.no> | 2019-01-09 01:47:41 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2019-01-09 01:47:41 +0100 |
commit | b12f5f461f4d135fc2590baadc9eedb01162b2f3 (patch) | |
tree | ecf9f71dd32dfe76ec37cdd4935a417a70b3f3ee | |
parent | 40ebbe2e0236b4cf3d5c91a7b21e286728800325 (diff) |
Fix switch-deletion in frontend after misspell
-rw-r--r-- | web/js/nms-ui-switch.js | 4 |
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) { |