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

B #5296 Solved bug when INPUTS_ORDER is not defined (#429)

This commit is contained in:
Abel Coronado 2017-09-05 12:49:05 +02:00 committed by Tino Vázquez
parent 19396e3864
commit e729241903

View File

@ -364,7 +364,6 @@ define(function(require) {
if(opts.defaults.INPUTS_ORDER){
var order = opts.defaults.INPUTS_ORDER;
var orderJSON = order.split(",");
$.each(orderJSON, function(key, value){
var orderValue = value;
$.each(input_attrs, function(index, custom_attr) {
@ -381,6 +380,18 @@ define(function(require) {
}
});
});
} else {
$.each(input_attrs, function(index, custom_attr) {
$(".instantiate_user_inputs", div).append(
'<div class="row">' +
'<div class="large-12 large-centered columns">' +
'<label>' +
TemplateUtils.htmlEncode(custom_attr.description) +
_attributeInput(custom_attr) +
'</label>' +
'</div>' +
'</div>');
});
}
}