/**
* Load rscan page
*
* @param tgtNodes Targets to run rscan against
*/
function loadRscanPage(tgtNodes) {
// Get node OS
var osHash = new Object();
var nodes = tgtNodes.split(',');
for (var i in nodes) {
var os = getNodeAttr(nodes[i], 'os');
var osBase = os.match(/[a-zA-Z]+/);
if (osBase) {
nodes[osBase] = 1;
}
}
// Get nodes tab
var tab = getNodesTab();
// Generate new tab ID
var inst = 0;
var newTabId = 'rscanTab' + inst;
while ($('#' + newTabId).length) {
// If one already exists, generate another one
inst = inst + 1;
newTabId = 'rscanTab' + inst;
}
// Create rscan form
var rscanForm = $('
');
// Create status bar
var statBarId = 'rscanStatusBar' + inst;
var statBar = createStatusBar(statBarId).hide();
// Create loader
var loader = createLoader('rscanLoader');
statBar.find('div').append(loader);
// Create info bar
var infoBar = createInfoBar('Collects node information from one or more hardware control points');
rscanForm.append(statBar, infoBar);
// Create VM fieldset
var vmFS = $('');
var vmLegend = $('');
vmFS.append(vmLegend);
rscanForm.append(vmFS);
var vmAttr = $('');
vmFS.append($(''));
vmFS.append(vmAttr);
// Create options fieldset
var optionsFS = $('');
var optionsLegend = $('');
optionsFS.append(optionsLegend);
rscanForm.append(optionsFS);
var optionsAttr = $('');
optionsFS.append($(''));
optionsFS.append(optionsAttr);
// Create target node or group input
var target = $('');
vmAttr.append(target);
// Create options
var optsList = $('