diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-07 15:48:41 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-07 15:48:41 +0200 |
commit | ef073a148f2dfcefc9f1bd2bd68fcb9c33aba3cf (patch) | |
tree | 356d2115a355d3c77417982ca6163b49f8922006 /apps/calendar/js | |
parent | 936c8ba1cc3b36fdc122276fc9a96de4a4003bd1 (diff) | |
download | nextcloud-server-ef073a148f2dfcefc9f1bd2bd68fcb9c33aba3cf.tar.gz nextcloud-server-ef073a148f2dfcefc9f1bd2bd68fcb9c33aba3cf.zip |
make calendar compatible with public.php
Diffstat (limited to 'apps/calendar/js')
-rw-r--r-- | apps/calendar/js/calendar.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index a16856938ce..b3beb8d44cb 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -517,7 +517,10 @@ 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(parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=calendar&t='+data.message); + $('#public_token').css('display', 'block'); + } }); }, unshare:function(id, idtype, sharewith, sharetype){ |