resources_selected: remove tfoot, and disable non-implemented buttons
[myslice.git] / plugins / resources_selected / static / js / resources_selected.js
index 175fef4..669bfca 100644 (file)
@@ -68,6 +68,7 @@
             manifold.raise_event(self.options.query_uuid, RUN_UPDATE);
         },
 
+       // related buttons are also disabled in the html template
         do_refresh: function(e)
         {
             throw 'resource_selected.do_refresh Not implemented';
             var button = '';
 
             var row;
-
+           
+           // make sure the change is visible : toggle on the whole plugin
+           // this might hae 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();
+           
             switch(data.request) {
                 case FIELD_REQUEST_ADD_RESET:
                 case FIELD_REQUEST_REMOVE_RESET: