feature #2798: Add search box and length select for data tables

This commit is contained in:
Daniel Molina committed 2014-04-03 19:04:23 +02:00
1 parent bfe360bb3b
commit 494dd964d0
3 files changed
+164 -36

No files matched your search

+1 -1
View File
@@ -1 +1 @@
meta.foundation-version {font-family:"/5.1.0/";}meta.foundation-mq-small {font-family:"/only screen and (max-width: 40em)/";width:0em;}meta.foundation-mq-medium {font-family:"/only screen and (min-width:40.063em)/";width:40.063em;}meta.foundation-mq-large {font-family:"/only screen and (min-width:64.063em)/";width:64.063em;}meta.foundation-mq-xlarge {font-family:"/only screen and (min-width:90.063em)/";width:90.063em;}meta.foundation-mq-xxlarge {font-family:"/only screen and (min-width:120.063em)/";width:120.063em;}meta.foundation-data-attribute-namespace {font-family:false;}html ,body {height:100%;}* ,*:before ,*:after {-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}html ,body {font-size:100%;}body {background:#ffffff;color:#555555;padding:0;margin:0;font-family:"Open Sans",sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default;}a:hover {cursor:pointer;}img ,object ,embed {max-width:100%;height:auto;}object ,embed {height:100%;}img {-ms-interpolation-mode:bicubic;}#map_canvas img ,#map_canvas embed ,#map_canvas object ,.map_canvas img ,.map_canvas embed ,.map_canvas object {max-width:none !important;}.left {float:left !important;}.right {float:right !important;}.clearfix {*zoom:1;}.clearfix:before ,.clearfix:after {content:" ";display:table;}.clearfix:after {clear:both;}.hide {display:none;}.antialiased {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}img {display:inline-block;vertical-align:middle;}textarea {height:auto;min-height:50px;}select {width:100%;}.row {width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:75rem;*zoom:1;}.row:before ,.row:after {content:" ";display:table;}.row:after {clear:both;}.row.collapse>.column ,.row.collapse>.columns {padding-left:0;padding-right:0;float:left;}.row.collapse .row {margin-left:0;margin-right:0;}.row .row {width:auto;margin-left:-0.9375rem;margin-right:-0.9375rem;margin-top:0;margin-bottom:0;max-width:none;*zoom:1;}.row .row:before ,.row .row:after {content:" ";display:table;}.row .row:after {clear:both;}.row .row.collapse {width:auto;margin:0;max-width:none;*zoom:1;}.row .row.collapse:before ,.row .row.collapse:after {content:" ";display:table;}.row .row.collapse:after {clear:both;}.column ,.columns {padding-left:0.9375rem;padding-right:0.9375rem;width:100%;float:left;}@media only screen{.column.small-centered ,.columns.small-centered {margin-left:auto;margin-right:auto;float:none;}.column.small-uncentered ,.columns.small-uncentered {margin-left:0;margin-right:0;float:left;}.column.small-uncentered.opposite ,.columns.small-uncentered.opposite {float:right;}.small-push-0 {left:0%;right:auto;}.small-pull-0 {right:0%;left:auto;}.small-push-1 {left:8.33333%;right:auto;}.small-pull-1 {right:8.33333%;left:auto;}.small-push-2 {left:16.66667%;right:auto;}.small-pull-2 {right:16.66667%;left:auto;}.small-push-3 {left:25%;right:auto;}.small-pull-3 {right:25%;left:auto;}.small-push-4 {left:33.33333%;right:auto;}.small-pull-4 {right:33.33333%;left:auto;}.small-push-5 {left:41.66667%;right:auto;}.small-pull-5 {right:41.66667%;left:auto;}.small-push-6 {left:50%;right:auto;}.small-pull-6 {right:50%;left:auto;}.small-push-7 {left:58.33333%;right:auto;}.small-pull-7 {right:58.33333%;left:auto;}.small-push-8 {left:66.66667%;right:auto;}.small-pull-8 {right:66.66667%;left:auto;}.small-push-9 {left:75%;right:auto;}.small-pull-9 {right:75%;left:auto;}.small-push-10 {left:83.33333%;right:auto;}.small-pull-10 {right:83.33333%;left:auto;}.small-push-11 {left:91.66667%;right:auto;}.small-pull-11 {right:91.66667%;left:auto;}.column ,.columns {position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left;}.small-1 {width:8.33333%;}.small-2 {width:16.66667%;}.small-3 {width:25%;}.small-4 {width:33.33333%;}.small-5 {width:41.66667%;}.small-6 {width:50%;}.small-7 {width:58.33333%;}.small-8 {width:66.66667%;}.small-9 {width:75%;}.small-10 {width:83.33333%;}.small-11 {width:91.66667%;}.small-12 {width:100%;}[class*="column"]+[class*="column"]:last-child {float:right;}[class*="column"]+[class*="column"].end {float:left;}.small-offset-0 {margin-left:0% !important;}.small-offset-1 {margin-left:8.33333% !important;}.small-offset-2 {margin-left:16.66667% !important;}.small-offset-3 {margin-left:25% !important;}.small-offset-4 {margin-left:33.33333% !important;}.small-offset-5 {margin-left:41.66667% !important;}.small-offset-6 {margin-left:50% !important;}.small-offset-7 {margin-left:58.33333% !important;}.small-offset-8 {margin-left:66.66667% !important;}.small-offset-9 {margin-left:75% !important;}.small-offset-10 {margin-left:83.33333% !important;}.small-offset-11 {margin-left:91.66667% !important;}.small-reset-order ,.small-reset-order {margin-left:0;margin-right:0;left:auto;right:auto;float:left;}}@media only screen and (min-width:40.063em){.column.medium-centered ,.columns.medium-centered {margin-left:auto;margin-right:auto;float:none;}.column.medium-uLine truncated
meta.foundation-version {font-family:"/5.1.0/";}meta.foundation-mq-small {font-family:"/only screen and (max-width: 40em)/";width:0em;}meta.foundation-mq-medium {font-family:"/only screen and (min-width:40.063em)/";width:40.063em;}meta.foundation-mq-large {font-family:"/only screen and (min-width:64.063em)/";width:64.063em;}meta.foundation-mq-xlarge {font-family:"/only screen and (min-width:90.063em)/";width:90.063em;}meta.foundation-mq-xxlarge {font-family:"/only screen and (min-width:120.063em)/";width:120.063em;}meta.foundation-data-attribute-namespace {font-family:false;}html ,body {height:100%;}* ,*:before ,*:after {-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}html ,body {font-size:100%;}body {background:#ffffff;color:#555555;padding:0;margin:0;font-family:"Open Sans",sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default;}a:hover {cursor:pointer;}img ,object ,embed {max-width:100%;height:auto;}object ,embed {height:100%;}img {-ms-interpolation-mode:bicubic;}#map_canvas img ,#map_canvas embed ,#map_canvas object ,.map_canvas img ,.map_canvas embed ,.map_canvas object {max-width:none !important;}.left {float:left !important;}.right {float:right !important;}.clearfix {*zoom:1;}.clearfix:before ,.clearfix:after {content:" ";display:table;}.clearfix:after {clear:both;}.hide {display:none;}.antialiased {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}img {display:inline-block;vertical-align:middle;}textarea {height:auto;min-height:50px;}select {width:100%;}.row {width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:75rem;*zoom:1;}.row:before ,.row:after {content:" ";display:table;}.row:after {clear:both;}.row.collapse>.column ,.row.collapse>.columns {padding-left:0;padding-right:0;float:left;}.row.collapse .row {margin-left:0;margin-right:0;}.row .row {width:auto;margin-left:-0.9375rem;margin-right:-0.9375rem;margin-top:0;margin-bottom:0;max-width:none;*zoom:1;}.row .row:before ,.row .row:after {content:" ";display:table;}.row .row:after {clear:both;}.row .row.collapse {width:auto;margin:0;max-width:none;*zoom:1;}.row .row.collapse:before ,.row .row.collapse:after {content:" ";display:table;}.row .row.collapse:after {clear:both;}.column ,.columns {padding-left:0.9375rem;padding-right:0.9375rem;width:100%;float:left;}@media only screen{.column.small-centered ,.columns.small-centered {margin-left:auto;margin-right:auto;float:none;}.column.small-uncentered ,.columns.small-uncentered {margin-left:0;margin-right:0;float:left;}.column.small-uncentered.opposite ,.columns.small-uncentered.opposite {float:right;}.small-push-0 {left:0%;right:auto;}.small-pull-0 {right:0%;left:auto;}.small-push-1 {left:8.33333%;right:auto;}.small-pull-1 {right:8.33333%;left:auto;}.small-push-2 {left:16.66667%;right:auto;}.small-pull-2 {right:16.66667%;left:auto;}.small-push-3 {left:25%;right:auto;}.small-pull-3 {right:25%;left:auto;}.small-push-4 {left:33.33333%;right:auto;}.small-pull-4 {right:33.33333%;left:auto;}.small-push-5 {left:41.66667%;right:auto;}.small-pull-5 {right:41.66667%;left:auto;}.small-push-6 {left:50%;right:auto;}.small-pull-6 {right:50%;left:auto;}.small-push-7 {left:58.33333%;right:auto;}.small-pull-7 {right:58.33333%;left:auto;}.small-push-8 {left:66.66667%;right:auto;}.small-pull-8 {right:66.66667%;left:auto;}.small-push-9 {left:75%;right:auto;}.small-pull-9 {right:75%;left:auto;}.small-push-10 {left:83.33333%;right:auto;}.small-pull-10 {right:83.33333%;left:auto;}.small-push-11 {left:91.66667%;right:auto;}.small-pull-11 {right:91.66667%;left:auto;}.column ,.columns {position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left;}.small-1 {width:8.33333%;}.small-2 {width:16.66667%;}.small-3 {width:25%;}.small-4 {width:33.33333%;}.small-5 {width:41.66667%;}.small-6 {width:50%;}.small-7 {width:58.33333%;}.small-8 {width:66.66667%;}.small-9 {width:75%;}.small-10 {width:83.33333%;}.small-11 {width:91.66667%;}.small-12 {width:100%;}[class*="column"]+[class*="column"]:last-child {float:right;}[class*="column"]+[class*="column"].end {float:left;}.small-offset-0 {margin-left:0% !important;}.small-offset-1 {margin-left:8.33333% !important;}.small-offset-2 {margin-left:16.66667% !important;}.small-offset-3 {margin-left:25% !important;}.small-offset-4 {margin-left:33.33333% !important;}.small-offset-5 {margin-left:41.66667% !important;}.small-offset-6 {margin-left:50% !important;}.small-offset-7 {margin-left:58.33333% !important;}.small-offset-8 {margin-left:66.66667% !important;}.small-offset-9 {margin-left:75% !important;}.small-offset-10 {margin-left:83.33333% !important;}.small-offset-11 {margin-left:91.66667% !important;}.small-reset-order ,.small-reset-order {margin-left:0;margin-right:0;left:auto;right:auto;float:left;}}@media only screen and (min-width:40.063em){.column.medium-centered ,.columns.medium-centered {margin-left:auto;margin-right:auto;float:none;}.column.medium-uLine truncated
+156 -35
View File
@@ -30,11 +30,19 @@ var provision_create_vm = '<form id="provision_create_vm" class="hidden section_
'<br>'+
'</div>'+
'</div>'+
'<br>'+
'<br>'+
'<div class="row">'+
'<div class="large-10 large-centered columns">'+
'<h3 class="subheader">'+
'<i class="fa fa-fw fa-laptop"/>&emsp;'+
tr("Select Capacity")+
'<h3 class="subheader text-right">'+
'<span class="left">'+
'<i class="fa fa-fw fa-laptop"/>&emsp;'+
tr("Select Capacity")+
'</span>'+
'<a href"#" id="provision_create_capacity_refresh_button" data-tooltip title="'+ tr("Refresh")+'" class="has-tip right">'+
'<i class="fa fa-fw fa-refresh"/>'+
'</a>'+
'<input type="search" class="provision-search-input right" placeholder="Search" id="provision_create_capacity_search"/>'+
'</h3>'+
'<br>'+
'</div>'+
@@ -54,11 +62,19 @@ var provision_create_vm = '<form id="provision_create_vm" class="hidden section_
'<br>'+
'</div>'+
'</div>'+
'<br>'+
'<br>'+
'<div class="row">'+
'<div class="large-10 large-centered columns">'+
'<h3 class="subheader">'+
'<i class="fa fa-fw fa-download"/>&emsp;'+
tr("Select Image")+
'<h3 class="subheader text-right">'+
'<span class="left">'+
'<i class="fa fa-fw fa-download"/>&emsp;'+
tr("Select Image")+
'</span>'+
'<a href"#" id="provision_create_image_refresh_button" data-tooltip title="'+ tr("Refresh")+'" class="has-tip right">'+
'<i class="fa fa-fw fa-refresh"/>'+
'</a>'+
'<input type="search" class="provision-search-input right" placeholder="Search" id="provision_create_image_search"/>'+
'</h3>'+
'<br>'+
'</div>'+
@@ -340,13 +356,13 @@ var provision_list_images = '<div id="provision_list_images" class="hidden secti
'<i class="fa fa-fw fa-camera"/>&emsp;'+
tr("Saved Images")+
'</span>'+
'<a href"#" id="provision_images_list_refresh_button" data-tooltip title="'+ tr("Refresh")+'" class="has-tip tip-top">'+
'<a href"#" id="provision_images_list_refresh_button" data-tooltip title="'+ tr("Refresh")+'" class="has-tip tip-top right">'+
'<i class="fa fa-fw fa-refresh"/>'+
'</a>'+
'<input type="search" class="provision-search-input right" placeholder="Search" id="provision_list_images_search"/>'+
'</h2>'+
'</div>'+
'</div>'+
'<br>'+
'<div class="row">'+
'<div class="large-10 large-centered columns" id="provision_confirm_delete_image_div">'+
'</div>'+
@@ -383,13 +399,13 @@ var provision_list_vms = '<div id="provision_list_vms" class="section_content">'
'<i class="fa fa-fw fa-th"/>&emsp;'+
tr("Virtual Machines")+
'</span>'+
'<a href"#" id="provision_vms_list_refresh_button" data-tooltip title="'+ tr("Refresh")+'" class="has-tip">'+
'<a href"#" id="provision_vms_list_refresh_button" data-tooltip title="'+ tr("Refresh")+'" class="has-tip right">'+
'<i class="fa fa-fw fa-refresh"/>'+
'</a>'+
'<input type="search" class="provision-search-input right" placeholder="Search" id="provision_list_vms_search"/>'+
'</h2>'+
'</div>'+
'</div>'+
'<br>'+
'<div class="row">'+
'<div class="large-10 large-centered columns">'+
'<table id="provision_vms_table">'+
@@ -896,20 +912,6 @@ function update_provision_images_datatable(datatable, timeout) {
'</div>');
} else {
datatable.fnAddData(item_list);
if (datatable.$('tr', {"filter": "applied"} ).length == 0) {
datatable.html('<div class="text-center">'+
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
'<i class="fa fa-cloud fa-stack-2x"></i>'+
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
'</span>'+
'<br>'+
'<br>'+
'<span style="font-size: 18px; color: #999">'+
tr("There are no images available")+
'</span>'+
'</div>');
}
}
}
})
@@ -1441,7 +1443,8 @@ $(document).ready(function(){
provision_templates_datatable = $('#provision_templates_table').dataTable({
"iDisplayLength": 6,
"sDom" : '<"H">t<"F"p>',
"sDom" : '<"H">t<"F"lp>',
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
"aoColumnDefs": [
{ "bVisible": false, "aTargets": ["all"]}
],
@@ -1451,7 +1454,21 @@ $(document).ready(function(){
],
"fnPreDrawCallback": function (oSettings) {
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
$("#provision_templates_table").html('<ul id="provision_templates_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
if (this.$('tr', {"filter": "applied"} ).length == 0) {
this.html('<div class="text-center">'+
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
'<i class="fa fa-cloud fa-stack-2x"></i>'+
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
'</span>'+
'<br>'+
'<br>'+
'<span style="font-size: 18px; color: #999">'+
tr("There are no templates available")+
'</span>'+
'</div>');
} else {
$("#provision_templates_table").html('<ul id="provision_templates_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
}
return true;
},
@@ -1485,9 +1502,23 @@ $(document).ready(function(){
update_provision_templates_datatable(provision_templates_datatable);
$('#provision_create_capacity_search').on('keyup',function(){
provision_templates_datatable.fnFilter( $(this).val() );
})
$('#provision_create_capacity_search').on('change',function(){
provision_templates_datatable.fnFilter( $(this).val() );
})
$("#provision_create_vm").on("click", "#provision_create_capacity_refresh_button", function(){
OpenNebula.Helper.clear_cache("TEMPLATE");
update_provision_templates_datatable(provision_templates_datatable);
});
provision_create_vm_images_datatable = $('#provision_create_vm_images_table').dataTable({
"iDisplayLength": 6,
"sDom" : '<"H">t<"F"p>',
"sDom" : '<"H">t<"F"lp>',
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
"aoColumnDefs": [
{ "bVisible": false, "aTargets": ["all"]}
],
@@ -1498,7 +1529,21 @@ $(document).ready(function(){
],
"fnPreDrawCallback": function (oSettings) {
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
$("#provision_create_vm_images_table").html('<ul id="provision_create_vm_images_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
if (this.$('tr', {"filter": "applied"} ).length == 0) {
this.html('<div class="text-center">'+
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
'<i class="fa fa-cloud fa-stack-2x"></i>'+
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
'</span>'+
'<br>'+
'<br>'+
'<span style="font-size: 18px; color: #999">'+
tr("There are no images available")+
'</span>'+
'</div>');
} else {
$("#provision_create_vm_images_table").html('<ul id="provision_create_vm_images_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
}
return true;
},
@@ -1525,7 +1570,8 @@ $(document).ready(function(){
provision_create_vm_snapshots_datatable = $('#provision_create_vm_snapshots_table').dataTable({
"iDisplayLength": 6,
"sDom" : '<"H">t<"F"p>',
"sDom" : '<"H">t<"F"lp>',
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
"aaSorting" : [[0, "desc"]],
"aoColumnDefs": [
{ "bVisible": false, "aTargets": ["all"]}
@@ -1538,7 +1584,22 @@ $(document).ready(function(){
"fnPreDrawCallback": function (oSettings) {
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
$("#provision_create_vm_snapshots_table").html('<ul id="provision_snapshots_ul" class="large-block-grid-3 medium-block-grid-2 small-block-grid-1 text-center"></ul>');
if (this.$('tr', {"filter": "applied"} ).length == 0) {
this.html('<div class="text-center">'+
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
'<i class="fa fa-cloud fa-stack-2x"></i>'+
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
'</span>'+
'<br>'+
'<br>'+
'<span style="font-size: 18px; color: #999">'+
tr("There are no images available")+
'</span>'+
'</div>');
} else {
$("#provision_create_vm_snapshots_table").html('<ul id="provision_snapshots_ul" class="large-block-grid-3 medium-block-grid-2 small-block-grid-1 text-center"></ul>');
}
return true;
},
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
@@ -1566,6 +1627,22 @@ $(document).ready(function(){
update_provision_images_datatable(provision_create_vm_snapshots_datatable);
provision_create_vm_snapshots_datatable.fnFilter("^" + username + "$", 2, true, false)
$('#provision_create_image_search').change(function(){
provision_create_vm_snapshots_datatable.fnFilter( $(this).val() );
provision_create_vm_images_datatable.fnFilter( $(this).val() );
})
$('#provision_create_image_search').keyup(function(){
provision_create_vm_snapshots_datatable.fnFilter( $(this).val() );
provision_create_vm_images_datatable.fnFilter( $(this).val() );
})
$("#provision_create_vm").on("click", "#provision_images_list_refresh_button", function(){
OpenNebula.Helper.clear_cache("IMAGE");
update_provision_images_datatable(provision_create_vm_snapshots_datatable);
update_provision_images_datatable(provision_create_vm_images_datatable);
});
tab.on("click", "#provision_create_vm .provision-pricing-table" , function(){
$(".provision-pricing-table", $(this).parents(".large-block-grid-3,.large-block-grid-2")).removeClass("selected")
$(this).addClass("selected");
@@ -1612,7 +1689,8 @@ $(document).ready(function(){
provision_images_datatable = $('#provision_images_table').dataTable({
"iDisplayLength": 8,
"sDom" : '<"H">t<"F"p>',
"sDom" : '<"H">t<"F"lp>',
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
"aaSorting" : [[0, "desc"]],
"aoColumnDefs": [
{ "bVisible": false, "aTargets": ["all"]}
@@ -1624,8 +1702,21 @@ $(document).ready(function(){
],
"fnPreDrawCallback": function (oSettings) {
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
$("#provision_images_table").html('<ul id="provision_images_ul" class="large-block-grid-2 medium-block-grid-2 small-block-grid-1 text-center"></ul>');
if (this.$('tr', {"filter": "applied"} ).length == 0) {
this.html('<div class="text-center">'+
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
'<i class="fa fa-cloud fa-stack-2x"></i>'+
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
'</span>'+
'<br>'+
'<br>'+
'<span style="font-size: 18px; color: #999">'+
tr("There are no images available")+
'</span>'+
'</div>');
} else {
$("#provision_images_table").html('<ul id="provision_images_ul" class="large-block-grid-2 medium-block-grid-2 small-block-grid-1 text-center"></ul>');
}
return true;
},
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
@@ -1656,6 +1747,14 @@ $(document).ready(function(){
update_provision_images_datatable(provision_images_datatable);
provision_images_datatable.fnFilter("^" + username + "$", 2, true, false)
$('#provision_list_images_search').keyup(function(){
provision_images_datatable.fnFilter( $(this).val() );
})
$('#provision_list_images_search').change(function(){
provision_images_datatable.fnFilter( $(this).val() );
})
$("#provision_images_list_button").on("click", function(){
show_provision_image_list(0);
});
@@ -1700,7 +1799,8 @@ $(document).ready(function(){
provision_vms_datatable = $('#provision_vms_table').dataTable({
"iDisplayLength": 6,
"sDom" : '<"H">t<"F"p>',
"sDom" : '<"H">t<"F"lp>',
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
"aaSorting" : [[0, "desc"]],
"aoColumnDefs": [
{ "bVisible": false, "aTargets": ["all"]}
@@ -1711,8 +1811,22 @@ $(document).ready(function(){
],
"fnPreDrawCallback": function (oSettings) {
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
if (this.$('tr', {"filter": "applied"} ).length == 0) {
this.html('<div class="text-center">'+
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
'<i class="fa fa-cloud fa-stack-2x"></i>'+
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
'</span>'+
'<br>'+
'<br>'+
'<span style="font-size: 18px; color: #999">'+
tr("There are no Virtual Machines available")+
'</span>'+
'</div>');
} else {
$("#provision_vms_table").html('<ul id="provision_vms_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
}
$("#provision_vms_table").html('<ul id="provision_vms_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
return true;
},
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
@@ -1757,6 +1871,13 @@ $(document).ready(function(){
update_provision_vms_datatable(provision_vms_datatable);
$('#provision_list_vms_search').keyup(function(){
provision_vms_datatable.fnFilter( $(this).val() );
})
$('#provision_list_vms_search').change(function(){
provision_vms_datatable.fnFilter( $(this).val() );
})
$("#provision_vms_list_button").on("click", function(){
show_provision_vm_list(0);
+7
View File
@@ -790,6 +790,13 @@ div.dataTables_scrollFoot table {
border-radius: 3px;
}
.provision-search-input {
width: 200px !important;
height:40px !important;
border-radius: 3px;
border-color: #efefef;
}
.accordion {
a.accordion-a {
border: 1px solid #efefef;