Skip to content

Commit

Permalink
resolvendo erro de JS #16
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgimenez committed May 15, 2017
1 parent 81ca3ac commit aa53a87
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions assets/js/customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,23 +783,23 @@

_templateData = $.extend(true, {}, control.params.fields);
var _templateData;
if ( $.isArray( values ) ) {
$.each( values, function ( i, _values ) {
_values = values[i];
if ( _values ) {
for (var j in _values) {
if (_templateData.hasOwnProperty(j) && _values.hasOwnProperty(j)) {
_templateData[j].value = _values[j];
}
}
}
var $html = $( control.template( _templateData) );
$('.list-repeatable', control.container).append($html);
control.intItem($html);
control.actions($html);
});
}

$.each( values, function ( i, _values ) {

_values = values[i];
if ( _values ) {
for (var j in _values) {
if (_templateData.hasOwnProperty(j) && _values.hasOwnProperty(j)) {
_templateData[j].value = _values[j];
}
}
}

var $html = $( control.template( _templateData) );
$('.list-repeatable', control.container).append($html);
control.intItem($html);
control.actions($html);
});


/**
Expand Down

0 comments on commit aa53a87

Please sign in to comment.