hook up download

This commit is contained in:
j 2012-02-19 19:05:13 +00:00
parent 11a50ae7d4
commit 282a835815

View file

@ -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);
},