- var oTable = $("#objectList");
-
- $.get("/rest/platform", function(data) {
- var list = '<div class="list-group-item sl-platfrom"><span class="list-group-item-heading">Testbeds</span></div>';
- for(i=0; i<data.length;i++) {
- list += '<a href="#" class="list-group-item sl-platfrom" data-platform="'+data[i].platform+'"><span class="list-group-item-heading">'+data[i].platform_longname+'</span><p class="list-group-item-text">'+data[i].platform+'</p></a>';
- }
- $('#select-platform').html(list);
- }).done(function() {
- // $('a.sl-platfrom').click(function() {
- // console.log($(this).data('platform'));
- // platformParameters = { "platform" : $(this).data('platform') };
- // $('a.sl-platfrom').removeClass('active');
- // $(this).addClass('active');
-//
- // oTable.load("/list/resource", platformParameters, function(data) {
- // oTable.fnDraw();
- // });
-//
- // $('body').data('filters',platformParameters);
- // });
- });
-
- /* Testbeds list */
- $('div#testbed-list').ready(function() {
- $('table#testbedList').load("/table/testbed", function(data) {
- $(this).dataTable( {
- "bScrollInfinite": true,
- "bScrollCollapse": true,
- "sScrollY": "500px",
- "bStateSave": true,
- "bPaginate": false,
- "bLengthChange": false,
- "bFilter": true,
- "bSort": true,
- "bInfo": false,
- "bAutoWidth": false
- } );
- });