resources_selected : keep it simple, turn off 'showing blabla' and the navigation...
[myslice.git] / plugins / resources_selected / static / js / resources_selected.js
index 0c6b27b..30ffbc5 100644 (file)
 
             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>>",
-                sPaginationType: 'full_numbers',
+// the original hazelnut layout was
+//                sDom: "<'row'<'col-xs-5'l><'col-xs-1'r><'col-xs-6'f>>t<'row'<'col-xs-5'i><'col-xs-7'p>>",
+// however the bottom line with 'showing blabla...' and the navigation widget are not really helpful
+                sDom: "<'row'<'col-xs-5'l><'col-xs-1'r><'col-xs-6'f>>t>",
+// so this does not matter anymore now that the pagination area is turned off
+//                sPaginationType: 'bootstrap',
                bAutoWidth: true,
-                //bJQueryUI      : true,
-                //bRetrieve      : true,
+//                bJQueryUI      : true,
+//                bRetrieve      : true,
 //                sScrollX       : '100%',                 // Horizontal scrolling 
 //                bSortClasses   : false,              // Disable style for the sorted column
 //                aaSorting      : [[ 0, 'asc' ]],        // Default sorting on URN
@@ -68,6 +72,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: