1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5220: fix VPCU range (#726)

Signed-off-by: Frederick Borges <fborges@opennebula.io>
(cherry picked from commit 15fdf4ab3848ad6e1b10dc6007d6f2227a8d099a)
This commit is contained in:
Frederick Borges 2021-01-28 20:05:05 +01:00 committed by Tino Vazquez
parent 6045447a5f
commit 3b0494c3e5
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -200,6 +200,15 @@ define(function(require) {
}
}
$("div.vcpu_input input.visor", context).on("change keyup", function(){
var min_value = $("div.vcpu_input input.visor", context).attr("data-min");
if (this.value < min_value){
this.value = min_value;
}
$(this).siblings("input").val(this.value);
$(this).siblings("input").trigger("input");
});
if (element.TEMPLATE.HYPERVISOR == "vcenter"){
$("div.cores_per_socket_select_wrapper").show();
$("div.socket_info").show();