diff --git a/static/js/pandora.js b/static/js/pandora.js index 0d574bf56..2b151190e 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -52,7 +52,7 @@ Ox.load({ user: data.user.level == 'guest' ? Ox.extend({}, data.site.user) : data.user }); Ox.extend(pandora.site, { - findKeys: data.site.itemKeys.map(function(key) { + findKeys: Ox.map(data.site.itemKeys, function(key) { return key.find ? key : null; }), sectionFolders: { @@ -73,7 +73,7 @@ Ox.load({ {id: 'featured', title: 'Featured Texts', showBrowser: false} ] }, - sortKeys: data.site.itemKeys.map(function(key) { + sortKeys: Ox.map(data.site.itemKeys, function(key) { return key.columnWidth ? key : null; }) }); diff --git a/static/js/pandora/ui/item.js b/static/js/pandora/ui/item.js index aed7c62b3..14a3fff14 100644 --- a/static/js/pandora/ui/item.js +++ b/static/js/pandora/ui/item.js @@ -407,6 +407,7 @@ pandora.ui.item = function() { pandora.UI.set('videoPoints|' + pandora.user.ui.item + '|position', data.position); }, resize: function(data) { + Ox.print('RESIZE!!', data.size) pandora.$ui.editor.options({ height: data.size });