From 175588a864d8eedb9e022df8d432b0b2a5433aaf Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Tue, 27 Feb 2018 12:24:47 +0100 Subject: [PATCH] B #1795: Broken MEM into VM instantiation (#1796) --- .../public/app/tabs/templates-tab/form-panels/instantiate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js index c53927333a..f0bcf54b60 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate.js @@ -517,9 +517,9 @@ define(function(require) { CapacityInputs.fill(capacityContext, template_json.VMTEMPLATE); if (template_json.VMTEMPLATE.TEMPLATE.HYPERVISOR == "vcenter"){ - $(".memory_input input", context).attr("pattern", "^([048]|\\d*[13579][26]|\\d*[24680][048])$"); + $(".memory_input .mb_input input", context).attr("pattern", "^([048]|\\d*[13579][26]|\\d*[24680][048])$"); } else { - $(".memory_input input", context).removeAttr("pattern"); + $(".memory_input .mb_input input", context).removeAttr("pattern"); } var cpuCost = template_json.VMTEMPLATE.TEMPLATE.CPU_COST;