Show the iCal sharing link instead of directly open it (references #141)

This commit is contained in:
Bernd Bestel
2019-03-05 19:36:14 +01:00
parent 4932b9c6d2
commit fcdeda91d9
4 changed files with 12 additions and 3 deletions

View File

@@ -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)
{