From ec652cc06e5beb7b5f307b8d296d1e72a92fcb37 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 23 Jan 2014 14:36:45 +0000 Subject: [PATCH] use embedGrid --- static/js/embedPanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/embedPanel.js b/static/js/embedPanel.js index 33588d0aa..4f879d990 100644 --- a/static/js/embedPanel.js +++ b/static/js/embedPanel.js @@ -10,7 +10,9 @@ pandora.ui.embedPanel = function() { if (ui.section != 'texts' && !ui.page) { if (!ui.item) { - if (Ox.contains(['grid', 'clip'], view)) { + if (view == 'grid') { + that = pandora.ui.embedGrid(); + } else if (view == 'clip') { that = pandora.ui.embedError(true); } else if (view == 'video') { that = pandora.ui.videoView(true);