Used iframe to show Ganglia install status.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9400 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2011-04-26 15:23:48 +00:00
parent 834e146918
commit beb32aef9f

View File

@ -1035,45 +1035,6 @@ function createGangliaToolTip() {
* @return Nothing
*/
function installGanglia(node) {
// (1) Find xCAT-dep repository
$.ajax( {
url : 'lib/cmd.php',
dataType : 'json',
data : {
cmd : 'webrun',
tgt : '',
args : 'installganglia;' + node,
msg : node
},
success : updateGangliaInstall
});
}
/**
* Update Ganglia install status
*
* @param data
* Data returned from HTTP request
* @return Nothing
*/
function updateGangliaInstall(data) {
// Create message in info box
var msg = '<pre>';
for (var i in data.rsp) {
msg += data.rsp[i] + '<br/>';
}
msg += '</pre>';
// Create an info box
var bar = createInfoBar(msg);
// Prepend info or warning bar to tab
bar.prependTo($('#gangliamon #nodes'));
bar.css({
'overflow': 'hidden',
'margin-bottom': '10px',
'width': '750px'
});
bar.delay(8000).slideUp();
var iframe = createIFrame('lib/cmd.php?cmd=webrun&tgt=&args=installganglia;' + node + '&msg=' + node + '&opts=flush');
iframe.prependTo($('#gangliamon #nodes'));
}