app/assets/javascripts/ckeditor/plugins/formswidget/dialogs/formswidget.js in activeadmin-selleo-cms-0.0.51 vs app/assets/javascripts/ckeditor/plugins/formswidget/dialogs/formswidget.js in activeadmin-selleo-cms-0.0.52
- old
+ new
@@ -3,14 +3,15 @@
$.ajax({
url: '/admin/forms.json',
type: 'GET',
async: false,
success: function(resp){
- items = [$.map(resp, function(obj, idx) {
- return [obj.title, obj.id]
- })]
+ items = $.map(resp, function(obj, idx) {
+ return [[obj.title, obj.id]]
+ })
}
});
+ debugger;
return {
title: 'Insert form',
minWidth: 400,
minHeight: 70,
\ No newline at end of file