make video preview links work
This commit is contained in:
parent
a54d18049e
commit
db0d3aea01
1 changed files with 12 additions and 3 deletions
|
@ -21,10 +21,19 @@ pandora.ui.videoPreview = function(data) {
|
|||
})
|
||||
.bindEvent({
|
||||
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(
|
||||
'/' + data.id + '/timeline/' + Ox.formatDuration(event.position, 2)
|
||||
'/' + data.id + '/timeline' //'/' + Ox.formatDuration(event.position, 2)
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
function getResolution() {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue