git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.onelab.eu/git/myslice
[unfold.git]
/
plugins
/
senslabmap
/
static
/
js
/
senslabmap.js
diff --git
a/plugins/senslabmap/static/js/senslabmap.js
b/plugins/senslabmap/static/js/senslabmap.js
index
f98a128
..
519a5af
100644
(file)
--- a/
plugins/senslabmap/static/js/senslabmap.js
+++ b/
plugins/senslabmap/static/js/senslabmap.js
@@
-39,14
+39,12
@@
},
on_all_query_done: function() {
},
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) {
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]);
}
}
});
}
}
});