1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-14 01:57:24 +03:00

B #5220: fix VPCU range (#726)

Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
Frederick Borges 2021-01-28 20:05:05 +01:00 committed by GitHub
parent 37098d157c
commit 15fdf4ab38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();