queryupdater: pending not displayed automatically when a box is checked
[unfold.git] / plugins / queryupdater / static / js / queryupdater.js
index abcd2d7..89afdf3 100644 (file)
@@ -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);
            // make sure the change is visible : toggle on the whole plugin
            // this might have to be made an 'auto-toggle' option of this plugin..
            // also it might be needed to be a little finer-grained here
-           this.toggle_on();
+
+        // XXX we don't want to show automaticaly the pending when a checkbox is checked
+           //this.toggle_on();
            
             switch(data.request) {
                 case FIELD_REQUEST_ADD_RESET:
 
         on_query_in_progress: function()
         {
+           messages.debug("queryupdater.on_query_in_progress");
             this.spin();
         },