mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Show the iCal sharing link instead of directly open it (references #141)
This commit is contained in:
@@ -17,7 +17,10 @@ $("#ical-button").on("click", function(e)
|
||||
Grocy.Api.Get('calendar/ical/sharing-link',
|
||||
function(result)
|
||||
{
|
||||
location.href = result.url;
|
||||
bootbox.alert({
|
||||
title: L('Share/Integrate calendar (iCal)'),
|
||||
message: L('Use the following (public) URL to share or integrate the calendar in iCal format') + '<input type="text" class="form-control form-control-sm mt-2 easy-link-copy-textbox" value="' + result.url + '">'
|
||||
});
|
||||
},
|
||||
function(xhr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user