Merge pull request #10761 from nextcloud/backport/10225/fix-url-generation-dav-app

[stable13] Fix call to OC.generateUrl for caldav birthday calendar on/off
This commit is contained in:
Morris Jobke 2018-08-20 14:46:40 +02:00 committed by GitHub
commit 1bd21fa351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'));
}
});