diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-03-13 16:58:08 +0000 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-03-13 16:58:08 +0000 |
commit | 1f7663c55e74c7c74990f40fcc78feb49658f932 (patch) | |
tree | 8df2562cae04982c35cb943a1a9b590795e705f8 /web/nms.gathering.org/js/nms-info-box.js | |
parent | e7eb548d99a324048d6fd08cb5a0243e47753451 (diff) |
NMS: InfoBox: Catch switch changes too
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 4 |
1 files changed, 4 insertions, 0 deletions
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"); } /* |