/**
* Created by tlams on 10/11/16.
*/
$(document).ready(function()
{
/* MAC ADDR Tooltip */
$('[data-toggle="tooltip"]').tooltip({
'selector': '',
'placement': 'left',
'container':'body'
});
/* ARRAY CONFIGURATION */
$('#dataTables-storages').DataTable( {
"lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "all"]],
"paging": true,
"searching": true,
"ordering": true,
"info": true,
responsive: {
details: {
type: 'inline',
target: 'tr'
}
},
columnDefs: [ {
className: 'control',
orderable: false,
targets: 0
} ],
order: [ 1, 'asc' ]
} );
$('#dataTables-cluster').DataTable( {
"lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "all"]],
"paging": true,
"searching": true,
"ordering": true,
"info": true,
responsive: {
details: {
type: 'inline',
target: 'tr'
}
},
columnDefs: [ {
className: 'control',
orderable: false,
targets: 0
} ],
order: [ 1, 'asc' ]
} );
$('#dataTables-hypervisors').DataTable( {
"lengthMenu": [[25, 50, 100, 500, -1], [25, 50, 100, 500, "all"]],
"paging": true,
"searching": true,
"ordering": true,
"info": true,
responsive: {
details: {
type: 'inline',
target: 'tr'
}
},
columnDefs: [ {
className: 'control',
orderable: false,
targets: 0
}
],
order: [ 1, 'asc' ]
} );
$('#dataTables-hypervisor').DataTable( {
"paging": false,
"searching": false,
"ordering": false,
"info": true,
responsive: {
details: {
type: 'inline',
target: 'tr'
}
},
columnDefs: [ {
className: 'control',
orderable: false,
targets: 0
} ],
order: [ 2, 'asc' ]
} );
$('.dataTables-vm').DataTable({
"lengthMenu": [[25, 50, 100, 500, -1], [25, 50, 100, 500, "all"]],
"paging": true,
"searching": true,
"ordering": true,
"info": true,
"pagingType": "simple_numbers",
responsive: {
details: {
type: 'column',
target: 'tr'
}
},
columnDefs: [ {
className: 'control',
orderable: false,
targets: 0
} ],
order: [ 1, 'asc' ]
} );
$( function()
{
/* VM GESTION */
function sendrequest()
{
var action = $( "#action" );
var id = $( "#bbaction" );
var box = $('.result');
var commandinfo = "The status available in the table is not dynamically update, you must wait the next cron rotate.
You can play the status command to have an updated informations";
box.html('