Skip to content

Commit

Permalink
Merge pull request #10225 from danielkesselberg/bugfix/8529/fix-url-g…
Browse files Browse the repository at this point in the history
…eneration-dav-app

Fix call to OC.generateUrl for caldav birthday calendar on/off
  • Loading branch information
skjnldsv authored Jul 13, 2018
2 parents fdb873f + 684945c commit 9f186e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/js/settings-admin-caldav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
});

0 comments on commit 9f186e1

Please sign in to comment.