make video preview links work
This commit is contained in:
parent
4ab8bb41f6
commit
a14441d971
1 changed files with 12 additions and 3 deletions
|
@ -21,9 +21,18 @@ pandora.ui.videoPreview = function(data) {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function(event) {
|
click: function(event) {
|
||||||
pandora.URL.set(
|
if (pandora.user.ui.item) {
|
||||||
'/' + data.id + '/timeline/' + Ox.formatDuration(event.position, 2)
|
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)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
function getResolution() {
|
function getResolution() {
|
||||||
|
|
Loading…
Reference in a new issue