From 1f7663c55e74c7c74990f40fcc78feb49658f932 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sun, 13 Mar 2016 16:58:08 +0000 Subject: NMS: InfoBox: Catch switch changes too --- web/nms.gathering.org/js/nms-info-box.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/nms.gathering.org/js') diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index 94792ee..cd34d5e 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -21,6 +21,8 @@ var nmsInfoBox = nmsInfoBox || { */ nmsInfoBox.show = function(x) { nmsData.addHandler("comments","switchshower",nmsInfoBox._show,x); + nmsData.addHandler("switches","switchshower",nmsInfoBox._show,x); + nmsData.addHandler("smanagement","switchshower",nmsInfoBox._show,x); nmsInfoBox._show(x); } @@ -30,6 +32,8 @@ nmsInfoBox.show = function(x) { nmsInfoBox.hide = function() { nmsInfoBox._hide(); nmsData.unregisterHandler("comments","switchshower"); + nmsData.unregisterHandler("switches","switchshower"); + nmsData.unregisterHandler("smanagement","switchshower"); } /* -- cgit v1.2.3