Set theme for all elements on UI on self service page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10671 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
33f84951f1
commit
3bcfbc51ae
@ -3288,25 +3288,4 @@ function jump2Provision(tgtNodes){
|
||||
}
|
||||
window.location.href = 'provision.php?nodes=' + tgtNodes + '&arch=' + archType + '&master=' + master +
|
||||
'&tftpserver=' + tftpserver + '&nfsserver=' + nfsserver;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adjust datatable column size
|
||||
*
|
||||
* @param tableId
|
||||
* Table ID
|
||||
* @return Nothing
|
||||
*/
|
||||
function adjustColumnSize(tableId) {
|
||||
var cols = $('#' + tableId).find('tbody tr:eq(0) td');
|
||||
|
||||
// If the column size is zero, wait until table is initialized
|
||||
if (!cols.eq(1).outerWidth()) {
|
||||
adjustColumnSize(tableId);
|
||||
} else {
|
||||
for (var i in cols) {
|
||||
var headers = $('#' + tableId + '_wrapper .dataTables_scrollHead .datatable thead tr th').eq(i);
|
||||
headers.css('width', cols.eq(i).outerWidth());
|
||||
}
|
||||
}
|
||||
}
|
@ -550,7 +550,7 @@ function loadNodePing(data) {
|
||||
// Hide status loader
|
||||
var pingCol = $('#' + nodesDTId + '_wrapper .dataTables_scrollHead .datatable thead tr th:eq(2)');
|
||||
pingCol.find('img').hide();
|
||||
datatable.fnDraw();
|
||||
adjustColumnSize(nodesDTId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -610,7 +610,7 @@ function loadPowerStatus(data) {
|
||||
// Hide power loader
|
||||
var powerCol = $('#' + nodesDTId + '_wrapper .dataTables_scrollHead .datatable thead tr th:eq(3)');
|
||||
powerCol.find('img').hide();
|
||||
datatable.fnDraw();
|
||||
adjustColumnSize(nodesDTId);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -670,7 +670,7 @@ function loadGangliaStatus(data) {
|
||||
// Hide Ganglia loader
|
||||
var gangliaCol = $('#' + nodesDTId + '_wrapper .dataTables_scrollHead .datatable thead tr th:eq(4)');
|
||||
gangliaCol.find('img').hide();
|
||||
datatable.fnDraw();
|
||||
adjustColumnSize(nodesDTId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -815,6 +815,27 @@ function openSettings() {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Adjust datatable column size
|
||||
*
|
||||
* @param tableId
|
||||
* Table ID
|
||||
* @return Nothing
|
||||
*/
|
||||
function adjustColumnSize(tableId) {
|
||||
var cols = $('#' + tableId).find('tbody tr:eq(0) td');
|
||||
|
||||
// If the column size is zero, wait until table is initialized
|
||||
if (!cols.eq(1).outerWidth()) {
|
||||
adjustColumnSize(tableId);
|
||||
} else {
|
||||
for (var i in cols) {
|
||||
var headers = $('#' + tableId + '_wrapper .dataTables_scrollHead .datatable thead tr th').eq(i);
|
||||
headers.css('width', cols.eq(i).outerWidth());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set menu theme
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user