diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-17 18:33:38 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-05-19 15:45:44 +0200 |
commit | da49e3f3e07158e3aec22efec26ff758c0f04598 (patch) | |
tree | f35da39cf5c42eba34416180f2863a27bda0ed78 /apps/sharebymail/js | |
parent | 18dd460720b762ff644f3292724c7aad2c9e551d (diff) | |
download | nextcloud-server-da49e3f3e07158e3aec22efec26ff758c0f04598.tar.gz nextcloud-server-da49e3f3e07158e3aec22efec26ff758c0f04598.zip |
Port share by mail settings to vue
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/sharebymail/js')
-rw-r--r-- | apps/sharebymail/js/settings-admin.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/apps/sharebymail/js/settings-admin.js b/apps/sharebymail/js/settings-admin.js deleted file mode 100644 index d586bde855b..00000000000 --- a/apps/sharebymail/js/settings-admin.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @copyright Copyright (c) 2017 Bjoern Schiessle <bjoern@schiessle.org> - * - * @license AGPL-3.0-or-later - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ -$(function() { - - $('#sendPasswordMail').on('change', function() { - var status = 'no'; - if ($(this).is(':checked')) { - status = 'yes'; - } - OCP.AppConfig.setValue('sharebymail', 'sendpasswordmail', status); - }); - - $('#enforcePasswordProtection').on('change', function() { - var status = 'no'; - if ($(this).is(':checked')) { - status = 'yes'; - } - OCP.AppConfig.setValue('sharebymail', 'enforcePasswordProtection', status); - }); - - $('#replyToInitiator').on('change', function() { - var status = 'no'; - if ($(this).is(':checked')) { - status = 'yes'; - } - OCP.AppConfig.setValue('sharebymail', 'replyToInitiator', status); - }); - -}); |