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); }; /**