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

B #1706: Doesn't retrieve the capacity unit in volatile disks

This commit is contained in:
Abel Coronado 2018-02-02 17:35:26 +01:00 committed by Ruben S. Montero
parent 9ed250e68b
commit 7e80db3c8d

View File

@ -155,8 +155,8 @@ define(function(require) {
selectedContext = $("div.image", context);
} else {
selectedContext = $("div.volatile", context);
var typeKvm = $("#TYPE_KVM", context).val();
var typeVcenter = $("#TYPE_VCENTER", context).val();
var typeKvm = $("#TYPE_KVM", selectedContext).val();
var typeVcenter = $("#TYPE_VCENTER", selectedContext).val();
var type = "fs";
if(typeKvm != "fs"){
type = typeKvm;
@ -175,7 +175,7 @@ define(function(require) {
tmpl.TYPE = type;
}
if(tmpl.SIZE != undefined && $(".mb_input_unit", context).val() == "GB"){
if(tmpl.SIZE != undefined && $(".mb_input_unit", selectedContext).val() == "GB"){
tmpl.SIZE = tmpl.SIZE * 1024;
tmpl.SIZE = tmpl.SIZE.toString();
}