mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 17:10:11 +00:00
Added possibility to export the calendar in iCal format (closes #141)
This commit is contained in:
@@ -9,3 +9,19 @@
|
||||
"eventLimit": true,
|
||||
"eventSources": fullcalendarEventSources
|
||||
});
|
||||
|
||||
$("#ical-button").on("click", function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
Grocy.Api.Get('calendar/ical/sharing-link',
|
||||
function(result)
|
||||
{
|
||||
location.href = result.url;
|
||||
},
|
||||
function(xhr)
|
||||
{
|
||||
console.error(xhr);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user