X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fqueryupdater%2Fstatic%2Fjs%2Fqueryupdater.js;h=b00f04fd00b4b785a88888d87b62b43fc7ea5ff5;hb=91dec1137db6f3b461ab40542f06b5fa93a2efa5;hp=e87b54fa8c7436b359f841fa8f1da747ab52b401;hpb=ef9e572f3c703640218a44ea7f86aa71805cbcfe;p=myslice.git diff --git a/plugins/queryupdater/static/js/queryupdater.js b/plugins/queryupdater/static/js/queryupdater.js index e87b54fa..b00f04fd 100644 --- a/plugins/queryupdater/static/js/queryupdater.js +++ b/plugins/queryupdater/static/js/queryupdater.js @@ -11,6 +11,9 @@ (function( $ ){ + var debug=false; + debug=true; + // XXX record selected (multiple selection ?) // XXX record disabled ? // XXX out of sync plugin ? @@ -25,8 +28,8 @@ var QueryUpdater = Plugin.extend({ - init: function(options, element) - { + init: function(options, element) { + this.classname="queryupdater"; this._super(options, element); var self = this; @@ -65,8 +68,7 @@ /***************************** GUI EVENTS *****************************/ - do_update: function(e) - { + do_update: function(e) { var self = e.data; // XXX check that the query is not disabled manifold.raise_event(self.options.query_uuid, RUN_UPDATE); @@ -268,6 +270,7 @@ on_query_in_progress: function() { + messages.debug("queryupdater.on_query_in_progress"); this.spin(); }, @@ -316,7 +319,7 @@ on_field_state_changed: function(result) { - console.log(result) + messages.debug(result) /* this.set_state(result.request, result.key, result.value, result.status); */ this.set_state(result); }, @@ -350,7 +353,7 @@ update_resources: function(resources, change) { - console.log("update_resources"); + messages.debug("update_resources"); var my_oTable = this.table.dataTable(); var prev_resources = this.current_resources;