summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-06-02 16:29:03 +0200
committerMorris Jobke <morris.jobke@gmail.com>2014-06-02 16:29:03 +0200
commit57ef089aac11f66f7cb29e9de1cb1e7d7bb46058 (patch)
treed68c62c5ee4c29cedc14756168e627356d9e914b /apps/files/js/fileactions.js
parent6f4bdbdb9495227c1ad1bf170ad9caeddea127c7 (diff)
downloadnextcloud-server-57ef089aac11f66f7cb29e9de1cb1e7d7bb46058.tar.gz
nextcloud-server-57ef089aac11f66f7cb29e9de1cb1e7d7bb46058.zip
drop allowZIPdownload and maxZIPSize as options
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 3df62f37518..de02bf5e730 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -275,14 +275,8 @@
});
this.setDefault('dir', 'Open');
- var downloadScope;
- if ($('#allowZipDownload').val() == 1) {
- downloadScope = 'all';
- } else {
- downloadScope = 'file';
- }
- this.register(downloadScope, 'Download', OC.PERMISSION_READ, function () {
+ this.register('all', 'Download', OC.PERMISSION_READ, function () {
return OC.imagePath('core', 'actions/download');
}, function (filename, context) {
var dir = context.dir || context.fileList.getCurrentDirectory();