fix a bug regarding opening the tv program in video view when the video position for that item had never been set before

This commit is contained in:
rolux 2011-12-23 15:08:04 +00:00
parent b7c0fde5e4
commit 8b97650936

View file

@ -53,14 +53,20 @@ pandora.ui.tv = function() {
pandora.UI.set('videoMuted', data.muted);
},
open: function() {
var set = {
item: result.data.item,
var item = result.data.item,
position = $player.options('position'),
set = {
item: item,
itemView: pandora.user.ui.videoView,
page: ''
};
set[
'videoPoints.' + result.data.item + '.position'
] = $player.options('position');
if (pandora.user.ui.videoPoints[item]) {
set['videoPoints.' + item + '.position'] = position;
} else {
set['videoPoints.' + item] = {
'in': 0, out: 0, position: position
};
}
pandora.UI.set(set);
},
resolution: function(data) {