FIX: editable fields list is an object in JSON

JSON output transformed array into object.
This commit is contained in:
colymba 2012-08-09 19:38:20 +03:00
parent fe8e41aa40
commit c916d6ac12

View File

@ -27,8 +27,8 @@ jQuery(document).ready(function(){
'<input type="hidden" name="record_{%=file.record.ID%}_ID" value="{%=file.record.ID%}"/>'+
'<img class="imgPreview" src="{%=file.preview_url%}" />'+
'{% for (var j=0; j<file.record.fields.length; j++) { %}' +
'{%#file.record.fields[j]%}' +
'{% for (var key in file.record.fields) { %}' +
'{%#file.record.fields[key]%}' +
'{% } %}' +
'</form>'+