summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-28 11:05:28 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-04 12:14:22 +0100
commitc6a69ba92514587814d0f03b51e1d1f026a49350 (patch)
treeb7162fff445ea0595280b535b95a60b689f742dd /apps/files/js
parent814bf0de20b05ef44d4558d49cc3dc655da1c58d (diff)
downloadnextcloud-server-c6a69ba92514587814d0f03b51e1d1f026a49350.tar.gz
nextcloud-server-c6a69ba92514587814d0f03b51e1d1f026a49350.zip
Remove the upload and memory setting
* Remove unneeded private method phpFileSize() * Bump autoloader * Remove setUploadLimit tests * Remove integrity check hacks for upload limit Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/admin.js70
1 files changed, 0 insertions, 70 deletions
diff --git a/apps/files/js/admin.js b/apps/files/js/admin.js
deleted file mode 100644
index 6afd77eb03e..00000000000
--- a/apps/files/js/admin.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (c) 2014
- *
- * This file is licensed under the Affero General Public License version 3
- * or later.
- *
- * See the COPYING-README file.
- *
- */
-
-(function() {
- if (!OCA.Files) {
- /**
- * Namespace for the files app
- * @namespace OCA.Files
- */
- OCA.Files = {};
- }
-
- /**
- * @namespace OCA.Files.Admin
- */
- OCA.Files.Admin = {
- initialize: function() {
- $('#submitMaxUpload').on('click', _.bind(this._onClickSubmitMaxUpload, this));
- },
-
- _onClickSubmitMaxUpload: function () {
- OC.msg.startSaving('#maxUploadSizeSettingsMsg');
-
- var request = $.ajax({
- url: OC.generateUrl('/apps/files/settings/maxUpload'),
- type: 'POST',
- data: {
- maxUploadSize: $('#maxUploadSize').val()
- }
- });
-
- request.done(function (data) {
- $('#maxUploadSize').val(data.maxUploadSize);
- OC.msg.finishedSuccess('#maxUploadSizeSettingsMsg', 'Saved');
- });
-
- request.fail(function () {
- OC.msg.finishedError('#maxUploadSizeSettingsMsg', 'Error');
- });
- }
- }
-})();
-
-function switchPublicFolder() {
- var publicEnable = $('#publicEnable').is(':checked');
- // find all radiobuttons of that group
- var sharingaimGroup = $('input:radio[name=sharingaim]');
- $.each(sharingaimGroup, function(index, sharingaimItem) {
- // set all buttons to the correct state
- sharingaimItem.disabled = !publicEnable;
- });
-}
-
-$(document).ready(function() {
- OCA.Files.Admin.initialize();
-
- // Execute the function after loading DOM tree
- switchPublicFolder();
- $('#publicEnable').click(function() {
- // To get rid of onClick()
- switchPublicFolder();
- });
-});