From d1485783b2927224c1a891ce327731b530f16ccb Mon Sep 17 00:00:00 2001 From: phamt Date: Wed, 24 Aug 2011 04:09:39 +0000 Subject: [PATCH] Fixed xCAT icon on Google Chrome. Fixed getNodeAttr(). git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10351 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 5 +++-- xCAT-UI/lib/ui.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index d85d1334a..5302a2abb 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -2131,11 +2131,12 @@ function runScript(inst) { */ function getNodeAttr(node, attrName) { // Get the row - var row = $('[id=' + node + ']').parent().parent(); + var row = $('[id=' + node + ']').parents('tr'); // Search for the column containing the attribute var attrCol; - var cols = row.parent().parent().find('th:contains("' + attrName + '")'); + + var cols = row.parents('.dataTables_scroll').find('.dataTables_scrollHead thead tr:eq(0) th'); // Loop through each column for (var i in cols) { // Find column that matches the attribute diff --git a/xCAT-UI/lib/ui.php b/xCAT-UI/lib/ui.php index 39bd901d7..e079f5fba 100644 --- a/xCAT-UI/lib/ui.php +++ b/xCAT-UI/lib/ui.php @@ -28,7 +28,7 @@ function loadPage(){ '