forked from 0x2620/pandora
hook up download
This commit is contained in:
parent
11a50ae7d4
commit
282a835815
1 changed files with 4 additions and 0 deletions
|
@ -135,6 +135,7 @@ pandora.ui.item = function() {
|
|||
clickLink: pandora.clickLink,
|
||||
cuts: result.data.cuts || [],
|
||||
duration: result.data.duration,
|
||||
enableDownload: pandora.site.capabilities.canDownloadVideo[pandora.user.level] >= result.data.rightslevel,
|
||||
enableSubtitles: pandora.user.ui.videoSubtitles,
|
||||
find: pandora.user.ui.itemFind,
|
||||
getTimelineImageURL: function(i) {
|
||||
|
@ -176,6 +177,9 @@ pandora.ui.item = function() {
|
|||
annotationssort: function(data) {
|
||||
pandora.UI.set({annotationsSort: data.sort});
|
||||
},
|
||||
downloadvideo: function(data) {
|
||||
document.location.href = '/' + pandora.user.ui.item + '/torrent/';
|
||||
},
|
||||
find: function(data) {
|
||||
pandora.UI.set('itemFind', data.find);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue