setPoster
This commit is contained in:
parent
8639f6322e
commit
a80f1f9515
5 changed files with 6 additions and 4 deletions
|
|
@ -439,6 +439,7 @@ pandora.ui.list = function(view) { // fixme: remove view argument
|
|||
pandora.$ui.mainMenu.disableItem('openmovie');
|
||||
}
|
||||
if (data.ids.length == 1) {
|
||||
pandora.user.ui.listItem = data.ids[0];
|
||||
pandora.api.get({id: data.ids[0], keys:['stream']}, function(result) {
|
||||
pandora.user.infoRatio = result.data.stream.aspectRatio;
|
||||
var height = pandora.$ui.info.width() / pandora.user.infoRatio + 16;
|
||||
|
|
|
|||
|
|
@ -406,7 +406,8 @@ pandora.ui.mainMenu = function() {
|
|||
pandora.$ui.accountDialog = (pandora.user.level == 'guest' ?
|
||||
pandora.ui.accountDialog('login') : pandora.ui.accountLogoutDialog()).open();
|
||||
} else if (data.id == 'posters') {
|
||||
pandora.$ui.postersDialog = pandora.ui.postersDialog(pandora.user.ui.item).open();
|
||||
var id = pandora.user.ui.item || pandora.user.ui.listItem;
|
||||
pandora.$ui.postersDialog = pandora.ui.postersDialog(id).open();
|
||||
} else if (data.id == 'places') {
|
||||
pandora.$ui.placesDialog = pandora.ui.placesDialog().open();
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ pandora.ui.postersDialog = function(id) {
|
|||
})
|
||||
);
|
||||
pandora.api.setPoster({
|
||||
id: pandora.user.ui.item,
|
||||
id: id,
|
||||
source: source
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue