add info view embed
This commit is contained in:
parent
6bac27bcc1
commit
00da62ba17
2 changed files with 18 additions and 1 deletions
17
static/js/embedInfo.js
Normal file
17
static/js/embedInfo.js
Normal 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;
|
||||
|
||||
};
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue