Fix call to OC.generateUrl for caldav birthday calendar on/off

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2018-07-12 21:49:02 +02:00
parent ed6352af0e
commit 684945c1a1
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ $('#caldavGenerateBirthdayCalendar').change(function() {
var val = $(this)[0].checked;
if (val) {
$.post(OC.generateUrl(OC.linkTo("dav", "enableBirthdayCalendar")));
$.post(OC.generateUrl('/apps/dav/enableBirthdayCalendar'));
} else {
$.post(OC.generateUrl(OC.linkTo("dav", "disableBirthdayCalendar")));
$.post(OC.generateUrl('/apps/dav/disableBirthdayCalendar'));
}
});