git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix query_all
[myslice.git]
/
plugins
/
senslabmap
/
static
/
js
/
senslabmap.js
diff --git
a/plugins/senslabmap/static/js/senslabmap.js
b/plugins/senslabmap/static/js/senslabmap.js
index
eb3acd2
..
71de05a
100644
(file)
--- a/
plugins/senslabmap/static/js/senslabmap.js
+++ b/
plugins/senslabmap/static/js/senslabmap.js
@@
-3,48
+3,63
@@
init: function(options, element) {
this._super(options, element);
init: function(options, element) {
this._super(options, element);
- /* Member variables */
- // query status
- this.received_all = false;
- this.received_set = false;
- this.in_set_buffer = Array();
+ this.elmt().on('show', this, this.on_show);
- var query = manifold.query_store.find_analyzed_query(options.query_uuid);
this.method = query.object;
this.method = query.object;
- var keys = manifold.metadata.get_key(this.method);
- this.key = (keys && keys.length == 1) ? keys[0] : null;
-
/* Setup query and record handlers */
this.listen_query(options.query_uuid);
/* Setup query and record handlers */
this.listen_query(options.query_uuid);
- this.listen_query(options.query_uuid, 'all');
-
+ this.listen_query(options.query_
all_
uuid, 'all');
+
/* GUI setup and event binding */
this.initialize_map();
},
initialize_map: function() {
/* GUI setup and event binding */
this.initialize_map();
},
initialize_map: function() {
+ console.log("init toto");
// TODO: this is static, retrieve directly nodes
nodes = nodes_gre;
init();
parseNodebox();
},
// TODO: this is static, retrieve directly nodes
nodes = nodes_gre;
init();
parseNodebox();
},
+
+ refresh: function() {
+ console.log("refresh");
+ myrender();
+ },
on_show: function(e) {
on_show: function(e) {
- // TODO
+ /* GUI setup and event binding */
+ e.data.refresh();
},
},
- on_
filter_added: function(filter
) {
- console.log(
filter
);
+ on_
all_new_record: function(record
) {
+ console.log(
"All New Record : " + record
);
},
on_new_record: function(record) {
},
on_new_record: function(record) {
- console.log(record);
+ console.log("New Record : " + record);
+ },
+
+ on_query_in_progress: function()
+ {
+ console.log('on_query_in_progress');
},
},
- on_record_received: function(record) {
- console.log(record);
+ on_query_done: function()
+ {
+ console.log('on_query_done');
+ },
+
+ on_all_query_in_progress: function()
+ {
+ console.log('on_all_query_in_progress');
},
},
+
+ on_all_query_done: function()
+ {
+ console.log('on_all_query_done');
+ }
});
$.plugin('SensLabMap', SensLabMap);
})(jQuery);
});
$.plugin('SensLabMap', SensLabMap);
})(jQuery);