From 63c2fbe3ad20a28ee9849f97a50446013377f154 Mon Sep 17 00:00:00 2001 From: phamt Date: Thu, 7 Oct 2010 17:40:24 +0000 Subject: [PATCH] Show "Under construction" message for functions not yet completed. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7780 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/blade.js | 15 ++++++++++++++- xCAT-UI/js/custom/fsp.js | 13 +++++++++++++ xCAT-UI/js/custom/hmc.js | 13 +++++++++++++ xCAT-UI/js/custom/ipmi.js | 13 +++++++++++++ xCAT-UI/js/custom/ivm.js | 13 +++++++++++++ 5 files changed, 66 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/custom/blade.js b/xCAT-UI/js/custom/blade.js index bc7c067dc..dba5bfaac 100644 --- a/xCAT-UI/js/custom/blade.js +++ b/xCAT-UI/js/custom/blade.js @@ -183,8 +183,21 @@ bladePlugin.prototype.loadProvisionPage = function(tabId) { * * @return Nothing */ -bladePlugin.prototype.loadResources = function() { +bladePlugin.prototype.loadResources = function() { + var tabID = 'bladeResourceTab'; // Resource tab ID + var loaderID = 'bladeResourceLoader'; // Loader ID + if ($('#' + loaderID).length) { + $('#' + loaderID).remove(); // Remove loader + } + + // Create info bar + var infoBar = createInfoBar('Under construction'); + // Create resource form + var resrcForm = $('
'); + resrcForm.append(infoBar); + + $('#' + tabID).append(resrcForm); }; /** diff --git a/xCAT-UI/js/custom/fsp.js b/xCAT-UI/js/custom/fsp.js index 88b4d003e..2d7561e05 100644 --- a/xCAT-UI/js/custom/fsp.js +++ b/xCAT-UI/js/custom/fsp.js @@ -184,7 +184,20 @@ fspPlugin.prototype.loadProvisionPage = function(tabId) { * @return Nothing */ fspPlugin.prototype.loadResources = function() { + var tabID = 'fspResourceTab'; // Resource tab ID + var loaderID = 'fspResourceLoader'; // Loader ID + if ($('#' + loaderID).length) { + $('#' + loaderID).remove(); // Remove loader + } + + // Create info bar + var infoBar = createInfoBar('Under construction'); + // Create resource form + var resrcForm = $('
'); + resrcForm.append(infoBar); + + $('#' + tabID).append(resrcForm); }; /** diff --git a/xCAT-UI/js/custom/hmc.js b/xCAT-UI/js/custom/hmc.js index 8d89ea7e3..f5c8428d9 100644 --- a/xCAT-UI/js/custom/hmc.js +++ b/xCAT-UI/js/custom/hmc.js @@ -217,7 +217,20 @@ hmcPlugin.prototype.loadProvisionPage = function(tabId) { * @return Nothing */ hmcPlugin.prototype.loadResources = function() { + var tabID = 'hmcResourceTab'; // Resource tab ID + var loaderID = 'hmcResourceLoader'; // Loader ID + if ($('#' + loaderID).length) { + $('#' + loaderID).remove(); // Remove loader + } + + // Create info bar + var infoBar = createInfoBar('Under construction'); + // Create resource form + var resrcForm = $('
'); + resrcForm.append(infoBar); + + $('#' + tabID).append(resrcForm); }; /** diff --git a/xCAT-UI/js/custom/ipmi.js b/xCAT-UI/js/custom/ipmi.js index fe3d7c6d4..23a8cf796 100644 --- a/xCAT-UI/js/custom/ipmi.js +++ b/xCAT-UI/js/custom/ipmi.js @@ -184,7 +184,20 @@ ipmiPlugin.prototype.loadProvisionPage = function(tabId) { * @return Nothing */ ipmiPlugin.prototype.loadResources = function() { + var tabID = 'ipmiResourceTab'; // Resource tab ID + var loaderID = 'ipmiResourceLoader'; // Loader ID + if ($('#' + loaderID).length) { + $('#' + loaderID).remove(); // Remove loader + } + + // Create info bar + var infoBar = createInfoBar('Under construction'); + // Create resource form + var resrcForm = $('
'); + resrcForm.append(infoBar); + + $('#' + tabID).append(resrcForm); }; /** diff --git a/xCAT-UI/js/custom/ivm.js b/xCAT-UI/js/custom/ivm.js index 630976aa6..772beac56 100644 --- a/xCAT-UI/js/custom/ivm.js +++ b/xCAT-UI/js/custom/ivm.js @@ -184,7 +184,20 @@ ivmPlugin.prototype.loadProvisionPage = function(tabId) { * @return Nothing */ ivmPlugin.prototype.loadResources = function() { + var tabID = 'ivmResourceTab'; // Resource tab ID + var loaderID = 'ivmResourceLoader'; // Loader ID + if ($('#' + loaderID).length) { + $('#' + loaderID).remove(); // Remove loader + } + + // Create info bar + var infoBar = createInfoBar('Under construction'); + // Create resource form + var resrcForm = $('
'); + resrcForm.append(infoBar); + + $('#' + tabID).append(resrcForm); }; /**