X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fsenslabmap%2Fstatic%2Fjs%2Fsenslabmap.js;h=519a5af1148fe157fae3152c5215d9668f44f3de;hb=ea102d533c62de817826a08aab357d5f19405360;hp=f98a128fa055de3672ed6429da45683bbda37334;hpb=08bce207f8b92b8c93677c7b3bf749bd23fcdbc2;p=unfold.git diff --git a/plugins/senslabmap/static/js/senslabmap.js b/plugins/senslabmap/static/js/senslabmap.js index f98a128f..519a5af1 100644 --- a/plugins/senslabmap/static/js/senslabmap.js +++ b/plugins/senslabmap/static/js/senslabmap.js @@ -39,14 +39,12 @@ }, on_all_query_done: function() { - var self = this; + var uuid = this.options.query_uuid; + var key = this.key - Senslab.createMaps($('#maps-container'), this.sites, this.nodes); + Senslab.createMaps($("#maps-container"), this.sites, this.nodes); Senslab.notify = function(node) { - manifold.raise_event(self.options.query_uuid, - node.boot_state == "Alive" ? SET_REMOVED : SET_ADD, - node[self.key] - ); + manifold.raise_event(uuid, node.selected ? SET_ADD : SET_REMOVED, node[key]); } } });