summaryrefslogtreecommitdiffstats
path: root/apps/dav/js
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-10-11 13:09:26 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-10-16 13:49:08 +0200
commit7828cf454e0df86a330380dc0674db780a7abd56 (patch)
tree285834f853a145985d4fc6efe7c94d3f51be435d /apps/dav/js
parent61077df79a91f8ef785eb2ef1874cf7244f5366d (diff)
downloadnextcloud-server-7828cf454e0df86a330380dc0674db780a7abd56.tar.gz
nextcloud-server-7828cf454e0df86a330380dc0674db780a7abd56.zip
add admin settings panel for dav app
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/js')
-rw-r--r--apps/dav/js/settings-admin-caldav.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/dav/js/settings-admin-caldav.js b/apps/dav/js/settings-admin-caldav.js
new file mode 100644
index 00000000000..10eb89ab61d
--- /dev/null
+++ b/apps/dav/js/settings-admin-caldav.js
@@ -0,0 +1,28 @@
+/**
+ * @copyright 2017, Georg Ehrke <oc.list@georgehrke.com>
+ *
+ * @author Georg Ehrke <oc.list@georgehrke.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * 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/>.
+ *
+ */
+"use strict";
+
+$('#caldavSendInvitations').change(function() {
+ var val = $(this)[0].checked;
+
+ OCP.AppConfig.setValue('dav', 'sendInvitations', val ? 'yes' : 'no');
+});