summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-26 17:35:12 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-26 17:35:12 +0200
commit0249a72caba9f1a4eeaf51f382a74fe61b66c284 (patch)
treebb272c3dbe57b3b2ec0bcb648fb3461668aa20c7 /apps/files/js/fileactions.js
parentebd82ee772ee32dc6fda37c377106f19a30922bf (diff)
downloadnextcloud-server-0249a72caba9f1a4eeaf51f382a74fe61b66c284.tar.gz
nextcloud-server-0249a72caba9f1a4eeaf51f382a74fe61b66c284.zip
fix downloading of files in files app
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 80e918a455c..fc6c99262ef 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -135,7 +135,7 @@ $(document).ready(function(){
var downloadScope = 'file';
}
FileActions.register(downloadScope,'Download',function(){return OC.imagePath('core','actions/download')},function(filename){
- window.location='ajax/download.php?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val());
+ window.location=OC.filePath('files', 'ajax', 'download.php?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val()));
});
});