From 2226fc631a5661f7ee38eaa0eb6619613d681415 Mon Sep 17 00:00:00 2001 From: phamt Date: Wed, 8 Feb 2012 20:04:50 +0000 Subject: [PATCH] Changed resource table display name. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11520 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/monitor/monitor.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xCAT-UI/js/monitor/monitor.js b/xCAT-UI/js/monitor/monitor.js index 92c3a3681..0e0bfd7db 100644 --- a/xCAT-UI/js/monitor/monitor.js +++ b/xCAT-UI/js/monitor/monitor.js @@ -208,31 +208,39 @@ function loadMonitorPage() { if (!$('#' + newTabId).length) { // Create loader var loader = $('
').append(createLoader(hw + 'ResourceLoader')); - tab.add(newTabId, hw, loader, true); // Create an instance of the plugin var plugin; + var displayName = ""; switch (hw) { case "kvm": plugin = new kvmPlugin(); + displayName = "KVM"; break; case "esx": plugin = new esxPlugin(); + displayName = "ESX"; break; case "blade": plugin = new bladePlugin(); + displayName = "BladeCenter"; break; case "hmc": plugin = new hmcPlugin(); + displayName = "System p"; break; case "ipmi": plugin = new ipmiPlugin(); + displayName = "iDataPlex"; break; case "zvm": plugin = new zvmPlugin(); + displayName = "z\/VM"; break; } - + + // Add resource tab and load resources + tab.add(newTabId, displayName, loader, true); plugin.loadResources(); }