summaryrefslogtreecommitdiffstats
path: root/apps/files/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
parent6f4bdbdb9495227c1ad1bf170ad9caeddea127c7 (diff)
downloadnextcloud-server-57ef089aac11f66f7cb29e9de1cb1e7d7bb46058.tar.gz
nextcloud-server-57ef089aac11f66f7cb29e9de1cb1e7d7bb46058.zip
drop allowZIPdownload and maxZIPSize as options
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/admin.js8
-rw-r--r--apps/files/js/fileactions.js8
2 files changed, 1 insertions, 15 deletions
diff --git a/apps/files/js/admin.js b/apps/files/js/admin.js
index 842b73c0cae..dcfec824cfe 100644
--- a/apps/files/js/admin.js
+++ b/apps/files/js/admin.js
@@ -25,12 +25,4 @@ $(document).ready(function() {
// To get rid of onClick()
switchPublicFolder();
});
-
- $('#allowZipDownload').bind('change', function() {
- if($('#allowZipDownload').attr('checked')) {
- $('#maxZipInputSize').removeAttr('disabled');
- } else {
- $('#maxZipInputSize').attr('disabled', 'disabled');
- }
- });
});
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();