diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-03 21:09:57 +0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-03 21:09:57 +0400 |
commit | eb0685de800f74d9b9c28cd678c5c1345d7cfab8 (patch) | |
tree | 6234aa9593fd9c196585ee3f3c3771fec68a5d4e /files_videoviewer | |
parent | f484a930389d3c275b7c6c66542dbe04dde080be (diff) |
Use fileDownloadPath for downloading files for viewers instead of OC.filePath. This is necessary for showing file previews for links.
Diffstat (limited to 'files_videoviewer')
-rw-r--r-- | files_videoviewer/js/viewer.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/files_videoviewer/js/viewer.js b/files_videoviewer/js/viewer.js index fad6fb753..344dd5bca 100644 --- a/files_videoviewer/js/viewer.js +++ b/files_videoviewer/js/viewer.js @@ -86,8 +86,7 @@ var videoViewer = { }, getMediaUrl : function(file) { var dir = $('#dir').val(); - return OC.filePath('files','ajax','download.php')+ - encodeURIComponent('?dir='+ encodeURIComponent(dir) + '&files='+encodeURIComponent(file)); + return fileDownloadPath(dir, file); }, onKeyDown : function(e) { if (e.keyCode == 27 && !$('.mejs-container-fullscreen').length && videoViewer.player) { |