]> source.dussan.org Git - nextcloud-server.git/commitdiff
add dropdown to eventform
authorGeorg Ehrke <dev@georgswebsite.de>
Sun, 8 Apr 2012 02:40:20 +0000 (22:40 -0400)
committerGeorg Ehrke <dev@georgswebsite.de>
Sun, 8 Apr 2012 02:40:20 +0000 (22:40 -0400)
apps/calendar/templates/part.eventform.php

index c4c3ae1c1e2511e77288feff7c543c71ee443ab5..e4bae3d4f817de35ac399db813282d81cfee902f 100644 (file)
@@ -1,3 +1,9 @@
+<script type="text/javascript">
+<?php
+echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid = "' . $_['eventid'] . '";';
+?>
+</script>
+
 <ul>
        <li><a href="#tabs-1"><?php echo $l->t('Eventinfo'); ?></a></li>
        <li><a href="#tabs-2"><?php echo $l->t('Repeating'); ?></a></li>
@@ -38,7 +44,7 @@
                        <?php } else { ?>
                        <th width="75px">&nbsp;</th>
                        <td>
-                               <input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['id'] ?>">
+                               <input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['eventid'] ?>">
                        </td>
                        <?php } ?>
                </tr>
 </div>
 <div id="tabs-3">//Alarm</div>
 <div id="tabs-4">//Attendees</div>
-<div id="tabs-5">//Share</div>
+<div id="tabs-5">
+       <?php echo $this->inc('share.dropdown'); ?>
+</div>