1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

Solved bug in capacity-create.js (#462)

This commit is contained in:
Abel Coronado 2017-09-08 14:59:01 +02:00 committed by Tino Vázquez
parent 23bd00e642
commit 9a56682374

View File

@ -201,7 +201,9 @@ define(function(require) {
$.each(["memory","cpu","vcpu"], function(i,classname){
$("."+classname+"_modify_type", context).on("change", function(){
$("."+classname+"_modify_opt", context).hide();
$("."+classname+"_modify_opt."+this.value, context).show();
if(this.value != ""){
$("."+classname+"_modify_opt."+this.value, context).show();
}
$("#memory_unit", context).change();
});