summaryrefslogtreecommitdiffstats
path: root/apps/dav/js
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-10-20 13:29:59 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-11-09 17:12:06 +0100
commit8b22bfea4f1609605c3cebd40a50ed7a77929d3f (patch)
tree92908a37e88227f798938f4b691b7346825b7314 /apps/dav/js
parentc7e5bc0f9ab6f58bf9a47dd0c3795e1183419652 (diff)
downloadnextcloud-server-8b22bfea4f1609605c3cebd40a50ed7a77929d3f.tar.gz
nextcloud-server-8b22bfea4f1609605c3cebd40a50ed7a77929d3f.zip
Add admin checkbox to disable birthday calendars
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/js')
-rw-r--r--apps/dav/js/settings-admin-caldav.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/dav/js/settings-admin-caldav.js b/apps/dav/js/settings-admin-caldav.js
index 10eb89ab61d..cf1a2006f69 100644
--- a/apps/dav/js/settings-admin-caldav.js
+++ b/apps/dav/js/settings-admin-caldav.js
@@ -26,3 +26,13 @@ $('#caldavSendInvitations').change(function() {
OCP.AppConfig.setValue('dav', 'sendInvitations', val ? 'yes' : 'no');
});
+
+$('#caldavGenerateBirthdayCalendar').change(function() {
+ var val = $(this)[0].checked;
+
+ if (val) {
+ $.post(OC.generateUrl(OC.linkTo("dav", "enableBirthdayCalendar")));
+ } else {
+ $.post(OC.generateUrl(OC.linkTo("dav", "disableBirthdayCalendar")));
+ }
+});