From b4777c383e13a2abe61d8ad1bb31b62aec17a8f9 Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 1 Aug 2011 15:28:19 +0000 Subject: [PATCH] Added Ganglia webpage link. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10203 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/monitor/gangliamon.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/monitor/gangliamon.js b/xCAT-UI/js/monitor/gangliamon.js index 25c813ff0..1aeec021b 100644 --- a/xCAT-UI/js/monitor/gangliamon.js +++ b/xCAT-UI/js/monitor/gangliamon.js @@ -31,7 +31,25 @@ function loadGangliaMon() { gangliaTab.append(nodes); // Create info bar - var info = createInfoBar('Select a group to view the nodes summary'); + var gangliaLnk = $('Click here'); + gangliaLnk.css( { + 'color' : 'blue', + 'text-decoration' : 'none' + }); + gangliaLnk.click(function() { + // Open a new window for Ganglia + window.open('../ganglia/'); + }); + + // Create info bar + var info = $('
'); + info.append(''); + var msg = $('

'); + msg.append('Select a group to view the nodes summary. '); + msg.append(gangliaLnk); + msg.append(' to open the Ganglia page.'); + info.append(msg); + info.css('margin-bottom', '10px'); nodes.append(info); // Get groups