From 5c3cbc0f6d313135d7dfef52c4f42c1d695063e9 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 14 Feb 2015 19:55:29 +0000 Subject: [PATCH] fix documents panel --- static/js/documentsPanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index e2aff845..dfd38ef3 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -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, ''];