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