/** * Global variables */ var monitorTabs; // Monitor tabs /** * Set the monitor tab * * @param o * Tab object * @return Nothing */ function setMonitorTab(o) { monitorTabs = o; } /** * Get the monitor tab * * @param Nothing * @return Tab object */ function getMonitorTab() { return monitorTabs; } /** * Load the monitor page * * @return Nothing */ function loadMonitorPage() { // If the page is already loaded if ($('#monitor_page').children().length) { // Do not reload the monitor page return; } // Create monitor tab var tab = new Tab(); setConfigTab(tab); tab.init(); $('#content').append(tab.object()); // Create provision tab var tab = new Tab(); setMonitorTab(tab); tab.init(); $('#content').append(tab.object()); /** * Monitor nodes */ var monitorForm = $('
'); // Create info bar var monitorInfoBar = createInfoBar('Under construction'); monitorForm.append(monitorInfoBar); // Create drop-down menu // Hardware available to provision - ipmi, blade, hmc, ivm, fsp, and zvm var div = $(''); monitorForm.append(div); tab.add('monitorTab', 'Monitor', monitorForm); /** * Monitor resources */ var resrcForm = $(''); // Create info bar var resrcInfoBar = createInfoBar('Monitor resources'); resrcForm.append(resrcInfoBar); // Create radio buttons for platforms var hwList =$('