Merge pull request #10225 from danielkesselberg/bugfix/8529/fix-url-generation-dav-app
Fix call to OC.generateUrl for caldav birthday calendar on/off
This commit is contained in:
commit
9f186e1d26
|
@ -31,8 +31,8 @@ $('#caldavGenerateBirthdayCalendar').change(function() {
|
||||||
var val = $(this)[0].checked;
|
var val = $(this)[0].checked;
|
||||||
|
|
||||||
if (val) {
|
if (val) {
|
||||||
$.post(OC.generateUrl(OC.linkTo("dav", "enableBirthdayCalendar")));
|
$.post(OC.generateUrl('/apps/dav/enableBirthdayCalendar'));
|
||||||
} else {
|
} else {
|
||||||
$.post(OC.generateUrl(OC.linkTo("dav", "disableBirthdayCalendar")));
|
$.post(OC.generateUrl('/apps/dav/disableBirthdayCalendar'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue