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:
parent
4cd69f69f1
commit
d867109994
@ -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");
|
||||
|
||||
|
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user