mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
parent
320893db4f
commit
175588a864
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user