From 00da62ba177de5616300a691b4f7d7161f3c04ec Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 22 Jan 2014 17:41:33 +0530 Subject: [PATCH] add info view embed --- static/js/embedInfo.js | 17 +++++++++++++++++ static/js/embedPanel.js | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 static/js/embedInfo.js diff --git a/static/js/embedInfo.js b/static/js/embedInfo.js new file mode 100644 index 00000000..cc4bbaac --- /dev/null +++ b/static/js/embedInfo.js @@ -0,0 +1,17 @@ +'use strict'; + +pandora.ui.embedInfo = function() { + + var ui = pandora.user.ui, + + that = Ox.Element(), + + $poster = Ox.Element('') + .attr({ + src: '/' + pandora.user.ui.item + '/poster.jpg' + }) + .appendTo(that); + + return that; + +}; \ No newline at end of file diff --git a/static/js/embedPanel.js b/static/js/embedPanel.js index ef365140..33588d0a 100644 --- a/static/js/embedPanel.js +++ b/static/js/embedPanel.js @@ -19,7 +19,7 @@ pandora.ui.embedPanel = function() { } } else { if (view == 'info') { - that = pandora.ui.embedError(true); + that = pandora.ui.embedInfo(); } else if (Ox.contains(['player', 'editor'], view)) { that = pandora.ui.embedPlayer(); } else if (view == 'timeline') {