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_sgfviewer | |
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_sgfviewer')
-rw-r--r-- | files_sgfviewer/js/viewer.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/files_sgfviewer/js/viewer.js b/files_sgfviewer/js/viewer.js index b2cd373d2..6d1de144b 100644 --- a/files_sgfviewer/js/viewer.js +++ b/files_sgfviewer/js/viewer.js @@ -1,11 +1,7 @@ function viewSgf(dir, file) { //tinker a valid sgf URL for the eidogo lib - var location= window.location.protocol+ - "//"+document.domain+ - OC.filePath('files','ajax','download.php')+ - '?files='+file+'&dir='+dir; - + var location = fileDownloadPath(dir, file); $('.actions,#file_action_panel').fadeOut('slow').promise().done(function() { // sgf action toolbar var sgfToolbarHtml = '<div class="crumb last">'+file+'</div>'; |