From 62b0d36397087c159828fbd6f1ccf6e573f2850c Mon Sep 17 00:00:00 2001 From: phamt Date: Wed, 24 Aug 2011 20:31:28 +0000 Subject: [PATCH] Fixed bugs caused by scrollable datatable. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10362 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 19 +++++++++++++------ xCAT-UI/lib/ui.php | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index 4a1328075..508014fd6 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -1514,7 +1514,7 @@ function loadNodeStatus(data) { */ function refreshNodeStatus(group, tableId) { // Show ping loader - var pingCol = $('#' + tableId + ' thead tr th').eq(2); + var pingCol = $('#' + tableId + '_wrapper .dataTables_scrollHead .datatable thead tr th:eq(2)'); pingCol.find('img').show(); // Get power status for nodes shown @@ -2456,11 +2456,14 @@ function createCommentsToolTip(comment) { function createStatusToolTip() { // Create tooltip container var toolTip = $('
').css({ - 'width': '150px' + 'width': '150px', + 'font-weight': 'normal' }); // Create info text - var info = $('

'); + var info = $('

').css({ + 'white-space': 'normal' + }); info.append('Click here to refresh the node status. To configure the xCAT monitor, '); // Create link to turn on xCAT monitoring @@ -2500,8 +2503,10 @@ function createStatusToolTip() { function createPowerToolTip() { // Create tooltip container var toolTip = $('
Click here to refresh the power status
').css({ - 'width': '150px' - }); + 'width': '150px', + 'white-space': 'normal', + 'font-weight': 'normal' + }); return toolTip; } @@ -2513,7 +2518,9 @@ function createPowerToolTip() { function createMonitorToolTip() { // Create tooltip container var toolTip = $('
Click here to refresh the monitoring status
').css({ - 'width': '150px' + 'width': '150px', + 'white-space': 'normal', + 'font-weight': 'normal' }); return toolTip; } diff --git a/xCAT-UI/lib/ui.php b/xCAT-UI/lib/ui.php index e079f5fba..422162cef 100644 --- a/xCAT-UI/lib/ui.php +++ b/xCAT-UI/lib/ui.php @@ -28,7 +28,7 @@ function loadPage(){ '