diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-03-12 23:31:36 +0000 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-03-12 23:31:36 +0000 |
commit | 93cf4e90320df21215a081a389cd2ab98a8a2d0d (patch) | |
tree | e79fede0d7730b13d3282100f405fac3e4b37762 /web/nms.gathering.org/js/nms-map-handlers.js | |
parent | 83e6b5e193799cabdc0af876178f385faef5e172 (diff) |
NMSjs: Bump map handlers and more
The idea is that map handlers just register for events instead of this
periodic update.
Diffstat (limited to 'web/nms.gathering.org/js/nms-map-handlers.js')
-rw-r--r-- | web/nms.gathering.org/js/nms-map-handlers.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/nms.gathering.org/js/nms-map-handlers.js b/web/nms.gathering.org/js/nms-map-handlers.js index ce1d6db..ec9e1b5 100644 --- a/web/nms.gathering.org/js/nms-map-handlers.js +++ b/web/nms.gathering.org/js/nms-map-handlers.js @@ -329,12 +329,14 @@ function commentUpdater() function commentInit() { + nmsData.addHandler("comments","mapHandler",commentUpdater); setLegend(1,"white","0 comments"); setLegend(2,blue,"Persistent"); setLegend(3,red, "New"); setLegend(4,orange,"Active"); setLegend(5,green ,"Old/inactive only"); } + /* * Testing-function to randomize colors of linknets and switches */ @@ -354,6 +356,7 @@ function randomizeColors() function discoInit() { + nmsData.addHandler("switches","mapHandler",randomizeColors); setNightMode(true); setLegend(1,blue,"Y"); setLegend(2,red, "M"); |