]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix address of public shared calendars
authorGeorg Ehrke <dev@georgswebsite.de>
Fri, 13 Apr 2012 20:26:06 +0000 (16:26 -0400)
committerGeorg Ehrke <dev@georgswebsite.de>
Fri, 13 Apr 2012 20:26:06 +0000 (16:26 -0400)
apps/calendar/js/calendar.js
apps/calendar/templates/share.dropdown.php

index d25242fe63a73efbb79edd3b80ad45c54b9f770b..84829695eee46a15b20cd3e9415bbfc59bc3bbf7 100644 (file)
@@ -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');
                                        }
                                });
index 4e9f41ead14001ea03596f50d2e891e47c2cb883..8e3baa77248c047c001b4530d50fce7d682bb5fe 100644 (file)
@@ -73,5 +73,5 @@ echo html_select_options($allgroups, array());
 </ul>
 <div id="public">
        <input type="checkbox" id="publish" <?php echo ($public['share'])?'checked="checked"':'' ?>><label for="publish"><?php echo $l->t('make public'); ?></label><br>
-       <input type="text" id="public_token" value="<?php echo OC_Helper::linkTo('calendar', 'share.php?t=' . $public['share'], null, true) ; ?>" onmouseover="$('#public_token').select();" style="<?php echo (!$public['share'])?'display:none':'' ?>">
+       <input type="text" id="public_token" value="<?php echo OC_Helper::linkToAbsolute('calendar', 'share.php?t=' . $public['share'], null, true) ; ?>" onmouseover="$('#public_token').select();" style="<?php echo (!$public['share'])?'display:none':'' ?>">
 </div>
\ No newline at end of file