Fixed column sizing after ganglia status is updated.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10672 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2011-09-28 22:31:18 +00:00
parent 3bcfbc51ae
commit faefeffa90
2 changed files with 13 additions and 9 deletions

View File

@ -1376,11 +1376,13 @@ function loadGangliaStatus(data) {
node = jQuery.trim(ganglia[i][0]);
status = jQuery.trim(ganglia[i][1]);
// Get the row containing the node
rowNum = findRow(node, '#' + nodesTableId, 1);
// Update the power status column
datatable.fnUpdate(status, rowNum, 4);
if (node) {
// Get the row containing the node
rowNum = findRow(node, '#' + nodesTableId, 1);
// Update the power status column
datatable.fnUpdate(status, rowNum, 4);
}
}
// Hide Ganglia loader

View File

@ -660,11 +660,13 @@ function loadGangliaStatus(data) {
node = jQuery.trim(ganglia[i][0]);
status = jQuery.trim(ganglia[i][1]);
// Get the row containing the node
rowNum = findRow(node, '#' + nodesDTId, 1);
if (node) {
// Get the row containing the node
rowNum = findRow(node, '#' + nodesDTId, 1);
// Update the power status column
datatable.fnUpdate(status, rowNum, 4);
// Update the power status column
datatable.fnUpdate(status, rowNum, 4);
}
}
// Hide Ganglia loader