From b12f5f461f4d135fc2590baadc9eedb01162b2f3 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 9 Jan 2019 01:47:41 +0100 Subject: Fix switch-deletion in frontend after misspell --- web/js/nms-ui-switch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/js') 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) { -- cgit v1.2.3