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); pandora.UI.set('videoMuted', data.muted);
}, },
open: function() { open: function() {
var set = { var item = result.data.item,
item: result.data.item, position = $player.options('position'),
itemView: pandora.user.ui.videoView, set = {
page: '' item: item,
}; itemView: pandora.user.ui.videoView,
set[ page: ''
'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); pandora.UI.set(set);
}, },
resolution: function(data) { resolution: function(data) {