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

B #5117: Fix core per sockest input

(cherry picked from commit c105aab21b990608bd8d5b8aa1385f2bfde08ebf)
This commit is contained in:
Sergio Betanzos 2020-12-11 12:16:53 +01:00 committed by Tino Vazquez
parent 4cd69f69f1
commit d867109994
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
2 changed files with 7 additions and 1 deletions

View File

@ -286,6 +286,10 @@ define(function(require) {
WizardFields.fill(context, element);
if(element.TOPOLOGY && element.TOPOLOGY.CORES) {
$('#CORES_PER_SOCKET').val(element.TOPOLOGY.CORES).change()
}
// Update memory_gb with the value set in memory
$("div.memory_input input", context).trigger("input");

View File

@ -207,7 +207,9 @@ define(function(require) {
var vcpuValue = $("div.vcpu_input input", context).val();
if (vcpuValue !== "") {
_generateCores(context);
$('#CORES_PER_SOCKET option[value="' + element.TEMPLATE.CORES_PER_SOCKET + '"]').prop('selected', true);
if(element.TEMPLATE.TOPOLOGY) {
$('#CORES_PER_SOCKET').val(element.TEMPLATE.TOPOLOGY.CORES).change()
}
}
vcpuInput.on("change keyup", function(e){