diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-18 11:39:00 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-18 11:39:00 +0200 |
commit | 8959e0af3def5bae8ca7d5cf8edc225f29a1162a (patch) | |
tree | 51127cb3cc0eb481575be58794aa73587c5e65b0 | |
parent | 7402543d3eb492c4c9ecca9ad7750ab6463553f9 (diff) | |
download | nextcloud-server-8959e0af3def5bae8ca7d5cf8edc225f29a1162a.tar.gz nextcloud-server-8959e0af3def5bae8ca7d5cf8edc225f29a1162a.zip |
implement shared calendar activation on js-side
-rw-r--r-- | apps/calendar/js/calendar.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index a267f15f781..ebfe31723da 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -499,6 +499,9 @@ Calendar={ Share:{ currentid: 'false', idtype: '', + activation:function(object,owner,id){ + $.getJSON(OC.filePath('calendar', 'ajax/share', 'activation.php'),{id:id, idtype:'calendar', activation:object.checked?1:0}); + }, dropdown:function(userid, calid){ $('.calendar_share_dropdown').remove(); $('<div class="calendar_share_dropdown"></div>').appendTo('#'+userid+'_'+calid); @@ -513,10 +516,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(window.location.protocol + '//' + location.host + OC.linkTo('calendar', 'share.php?t=' + data.message)); - $('#public_token').css('display', 'block'); - } + }); }, unshare:function(id, idtype, sharewith, sharetype){ |