aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-info-box.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-03-13 16:58:08 +0000
committerKristian Lyngstol <kly@kly.no>2016-03-13 16:58:08 +0000
commit1f7663c55e74c7c74990f40fcc78feb49658f932 (patch)
tree8df2562cae04982c35cb943a1a9b590795e705f8 /web/nms.gathering.org/js/nms-info-box.js
parente7eb548d99a324048d6fd08cb5a0243e47753451 (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.js4
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");
}
/*