From faefeffa90e2ad00d74154fa6a436e9a50a67b11 Mon Sep 17 00:00:00 2001 From: phamt Date: Wed, 28 Sep 2011 22:31:18 +0000 Subject: [PATCH] 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 --- xCAT-UI/js/nodes/nodes.js | 12 +++++++----- xCAT-UI/js/service/service.js | 10 ++++++---- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 5c792f3ba..baa79e5f5 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -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 diff --git a/xCAT-UI/js/service/service.js b/xCAT-UI/js/service/service.js index 82a2f1c98..f86263ed6 100644 --- a/xCAT-UI/js/service/service.js +++ b/xCAT-UI/js/service/service.js @@ -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