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

(cherry picked from commit e729241903)
This commit is contained in:
Abel Coronado authored and Tino Vazquez committed 2017-09-05 12:49:39 +02:00
1 parent 6198e03e6b
commit 993cd4b844
1 file changed
+12 -1
+12 -1
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>');
});
}
}