diff --git a/src/sunstone/public/app/tabs/hosts-tab/panels/numa.js b/src/sunstone/public/app/tabs/hosts-tab/panels/numa.js index 379161390a..bde9ae81da 100644 --- a/src/sunstone/public/app/tabs/hosts-tab/panels/numa.js +++ b/src/sunstone/public/app/tabs/hosts-tab/panels/numa.js @@ -48,6 +48,7 @@ define(function(require) { this.title = Locale.tr("Numa"); this.icon = "fa-microchip"; this.element = info[RESOURCE.toUpperCase()]; + this.class = "not_vcenter"; return this; }; @@ -93,6 +94,16 @@ define(function(require) { function _setup(context) { var that = this; + + console.log(that); + + // Hide NUMA tab if hypervisor is vcenter + if( that.element && + that.element.VM_MAD && + that.element.VM_MAD == "vcenter"){ + $("li.not_vcenter").addClass("hide"); + } + if ( that && that.element && @@ -271,4 +282,3 @@ define(function(require) { } } }) - diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js index dc030cfc92..c655333b84 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js @@ -196,7 +196,6 @@ define(function(require) { context.on("change", "#CORES_PER_SOCKET", function(){ _calculateSockets(context); }); - // MB to GB context.on("input", "div.memory_input input", function(){ $("div.memory_gb_input input", context).val(_m2g(this.value));