mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
Feature #4317: Fix bug in template update
This commit is contained in:
parent
316e3c58f7
commit
d0e6ac1731
@ -178,6 +178,8 @@ define(function(require) {
|
||||
|
||||
var userInputsJSON = element['USER_INPUTS'];
|
||||
|
||||
$("[class$=_modify_type]", context).val("fixed").change();
|
||||
|
||||
if (userInputsJSON) {
|
||||
$.each(["memory","cpu","vcpu"], function(i,classname){
|
||||
var name = classname.toUpperCase();
|
||||
@ -190,8 +192,6 @@ define(function(require) {
|
||||
$("input."+classname+"_modify_opt."+attr.type, context).val(attr.params).trigger("input");
|
||||
|
||||
delete userInputsJSON[name];
|
||||
} else {
|
||||
$("."+classname+"_modify_type", context).val("fixed").change();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user