mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
(cherry picked from commit 175588a864)
This commit is contained in:
1 parent
4425654fb6
commit
0709cfca76
1 file changed
+2
-2
@@ -405,9 +405,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;
|
||||
|
||||
Reference in new issue
Block a user