From: Georg Ehrke Date: Fri, 13 Apr 2012 20:26:06 +0000 (-0400) Subject: fix address of public shared calendars X-Git-Tag: v4.0.0beta~244^2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=02dc34320978bfbcb30dea34b87808837586bb65;p=nextcloud-server.git fix address of public shared calendars --- diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index d25242fe63a..84829695eee 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -515,7 +515,7 @@ Calendar={ share:function(id, idtype, sharewith, sharetype){ $.getJSON(OC.filePath('calendar', 'ajax/share', 'share.php'),{id:id, idtype:idtype, sharewith:sharewith, sharetype:sharetype}, function(data){ if(sharetype == 'public'){ - $('#public_token').val(OC.linkTo('calendar', 'share.php?t=' + data.message)); + $('#public_token').val(window.location.protocol + '//' + location.host + OC.linkTo('calendar', 'share.php?t=' + data.message)); $('#public_token').css('display', 'block'); } }); diff --git a/apps/calendar/templates/share.dropdown.php b/apps/calendar/templates/share.dropdown.php index 4e9f41ead14..8e3baa77248 100644 --- a/apps/calendar/templates/share.dropdown.php +++ b/apps/calendar/templates/share.dropdown.php @@ -73,5 +73,5 @@ echo html_select_options($allgroups, array());
>
- +
\ No newline at end of file