keep dataTAbles.bootstrap.js as-is from github, and set sDom explicitly in resources_...
[myslice.git] / plugins / resources_selected / static / js / resources_selected.js
index b70176e..175fef4 100644 (file)
@@ -31,7 +31,7 @@
 
             var self = this;
             this.table = this.elmt('table').dataTable({
-//                sDom: "<'row'<'col-md-5'l><'col-md-1'r><'col-md-6'f>>t<'row'<'col-md-5'i><'col-md-7'p>>",
+                sDom: "<'row'<'col-xs-5'l><'col-xs-1'r><'col-xs-6'f>>t<'row'<'col-xs-5'i><'col-xs-7'p>>",
                 sPaginationType: 'full_numbers',
                bAutoWidth: true,
                 //bJQueryUI      : true,
@@ -49,8 +49,6 @@
              });
             
             // XXX This should not be done at init...
-           console.log("elmt(update) is " + this.elmt('update'));
-
             this.elmt('update').click(this, this.do_update);
             this.elmt('refresh').click(this, this.do_refresh);
             this.elmt('reset').click(this, this.do_reset);
@@ -65,7 +63,6 @@
 
         do_update: function(e) 
         {
-           console.log ("in do_update");
             var self = e.data;
             // XXX check that the query is not disabled
             manifold.raise_event(self.options.query_uuid, RUN_UPDATE);
 
         do_refresh: function(e)
         {
-            throw 'Not implemented';
+            throw 'resource_selected.do_refresh Not implemented';
         },
 
         do_reset: function(e)
         {
-            throw 'Not implemented';
+            throw 'resources_selected.do_reset Not implemented';
         },
 
         do_clear_annotations: function(e)
         {
-            throw 'Not implemented';
+            throw 'resources_selected.do_clear_annotations Not implemented';
         },
         
         /************************** GUI MANIPULATION **************************/