diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-13 12:28:28 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-13 12:28:28 +0200 |
commit | 5ac10a9c0eecfa6fe49c314954c506972f275e24 (patch) | |
tree | 8c8e0c1c650b33cd6fc8f7fca64f113459546e3f /apps | |
parent | f45411f79d5795d833653554330d3eb38634c8a0 (diff) | |
download | nextcloud-server-5ac10a9c0eecfa6fe49c314954c506972f275e24.tar.gz nextcloud-server-5ac10a9c0eecfa6fe49c314954c506972f275e24.zip |
hide share tab for new events, because you can't share an event that haven't got an id yet
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/calendar/templates/part.eventform.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/templates/part.eventform.php b/apps/calendar/templates/part.eventform.php index b3bbf7a375b..2d86ce4d318 100755 --- a/apps/calendar/templates/part.eventform.php +++ b/apps/calendar/templates/part.eventform.php @@ -9,7 +9,7 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid <li><a href="#tabs-2"><?php echo $l->t('Repeating'); ?></a></li> <!--<li><a href="#tabs-3"><?php echo $l->t('Alarm'); ?></a></li> <li><a href="#tabs-4"><?php echo $l->t('Attendees'); ?></a></li>--> - <?php if($_['access'] == 'owner') { ?> + <?php if($_['access'] == 'owner' && $_['eventid'] != 'new') { ?> <li><a href="#tabs-5"><?php echo $l->t('Share'); ?></a></li> <?php } ?> </ul> @@ -246,6 +246,6 @@ echo 'Calendar.UI.Share.idtype = "event";' . "\n" . 'Calendar.UI.Share.currentid <div id="tabs-4">//Attendees</div>--> <?php if($_['access'] == 'owner') { ?> <div id="tabs-5"> - <?php echo $this->inc('share.dropdown'); ?> + <?php if($_['eventid'] != 'new'){ echo $this->inc('share.dropdown'); } ?> </div> <?php } ?> |