make video preview links work

This commit is contained in:
rlx 2011-08-16 13:28:12 +00:00
parent 4ab8bb41f6
commit a14441d971

View file

@ -21,10 +21,19 @@ pandora.ui.videoPreview = function(data) {
}) })
.bindEvent({ .bindEvent({
click: function(event) { click: function(event) {
if (pandora.user.ui.item) {
pandora.$ui[
pandora.user.ui.itemView == 'player' ? 'player' : 'editor'
].options({
position: event.position
});
} else {
pandora.UI.set('videoPosition|' + data.id, event.position);
pandora.URL.set( pandora.URL.set(
'/' + data.id + '/timeline/' + Ox.formatDuration(event.position, 2) '/' + data.id + '/timeline' //'/' + Ox.formatDuration(event.position, 2)
); );
} }
}
}); });
function getResolution() { function getResolution() {
return return