in video view, update URL when selecting annotation (fixes #479)
This commit is contained in:
parent
62c82fceb9
commit
26f368ef84
1 changed files with 6 additions and 10 deletions
|
@ -203,6 +203,9 @@ pandora.ui.item = function() {
|
|||
scale: function(data) {
|
||||
pandora.UI.set('videoScale', data.scale);
|
||||
},
|
||||
select: function(data) {
|
||||
pandora.UI.set('videoPoints.' + pandora.user.ui.item + '.annotation', data.id.split('/')[1]);
|
||||
},
|
||||
subtitles: function(data) {
|
||||
pandora.UI.set('videoSubtitles', data.subtitles);
|
||||
},
|
||||
|
@ -339,16 +342,9 @@ pandora.ui.item = function() {
|
|||
document.location.href = '/' + pandora.user.ui.item + '/torrent/';
|
||||
},
|
||||
downloadselection: function(data) {
|
||||
document.location.href = [
|
||||
'/',
|
||||
pandora.user.ui.item,
|
||||
'/',
|
||||
Ox.max(pandora.site.video.resolutions),
|
||||
'p.webm?t=',
|
||||
data['in'],
|
||||
',',
|
||||
data.out
|
||||
].join('');
|
||||
document.location.href = '/' + pandora.user.ui.item
|
||||
+ '/' + Ox.max(pandora.site.video.resolutions)
|
||||
+ 'p.webm?t=' + data['in'] + ',' + data.out;
|
||||
},
|
||||
editannotation: function(data) {
|
||||
Ox.Log('', 'editAnnotation', data);
|
||||
|
|
Loading…
Reference in a new issue