add info view embed

This commit is contained in:
rolux 2014-01-22 17:41:33 +05:30
parent 6bac27bcc1
commit 00da62ba17
2 changed files with 18 additions and 1 deletions

17
static/js/embedInfo.js Normal file
View file

@ -0,0 +1,17 @@
'use strict';
pandora.ui.embedInfo = function() {
var ui = pandora.user.ui,
that = Ox.Element(),
$poster = Ox.Element('<img>')
.attr({
src: '/' + pandora.user.ui.item + '/poster.jpg'
})
.appendTo(that);
return that;
};

View file

@ -19,7 +19,7 @@ pandora.ui.embedPanel = function() {
} }
} else { } else {
if (view == 'info') { if (view == 'info') {
that = pandora.ui.embedError(true); that = pandora.ui.embedInfo();
} else if (Ox.contains(['player', 'editor'], view)) { } else if (Ox.contains(['player', 'editor'], view)) {
that = pandora.ui.embedPlayer(); that = pandora.ui.embedPlayer();
} else if (view == 'timeline') { } else if (view == 'timeline') {