layout and style changes
[myslice.git] / portal / static / js / myslice-ui.js
index b60c7c1..0419986 100644 (file)
@@ -34,19 +34,20 @@ $(document).ready(function() {
                });
        });
        
-       
-       oTable.load("/list/resource", {}, function(data) {
+       //{'columns' : ['hostname','country','type'], 'filters' : { 'country' : 'France' } }
+       oTable.load("/table/resource/", {'columns' : ['hostname','country','type'] }, function(data) {
                $(this).dataTable( {
-                       "bScrollInfinite": true,
+                       "sScrollY": window.innerHeight - 275,
+                       "sDom": "frtiS",
                "bScrollCollapse": true,
-               "sScrollY": "500px",
                "bStateSave": true,
                "bPaginate": false,
                "bLengthChange": false,
-               "bFilter": true,
+               "bFilter": false,
                "bSort": true,
                "bInfo": false,
-               "bAutoWidth": false
+               "bAutoWidth": true,
+               "bAutoHeight": false
                } );
        });
 } );