fix documents panel

This commit is contained in:
rolux 2015-02-14 19:55:29 +00:00
parent 821ba813f1
commit 5c3cbc0f6d

View file

@ -678,7 +678,7 @@ pandora.ui.documentsPanel = function(options) {
? Ox.ArrayInput({ ? Ox.ArrayInput({
input: { input: {
get: function(width) { get: function(width) {
return Ox.FormElementGroup({ var $input = Ox.FormElementGroup({
elements: [ elements: [
Ox.Select({ Ox.Select({
items: pandora.site.entities.map(function(entity) { items: pandora.site.entities.map(function(entity) {
@ -714,6 +714,7 @@ pandora.ui.documentsPanel = function(options) {
], ],
width: width width: width
}); });
return $input;
}, },
getEmpty: function() { getEmpty: function() {
return [pandora.site.entities[0].id, '']; return [pandora.site.entities[0].id, ''];