summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-17 21:36:55 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-17 22:09:22 +0100
commita33b757b192384e612f278feeb30d998b3816a4d (patch)
treeef4427e333aa5748780bc08bf53ab3ab77be094d /apps/calendar/ajax
parentdab553147470a78dfbe0f220908e35f639d956f6 (diff)
downloadnextcloud-server-a33b757b192384e612f278feeb30d998b3816a4d.tar.gz
nextcloud-server-a33b757b192384e612f278feeb30d998b3816a4d.zip
Calendar: Add default repeat values when editing a non-repeating event
Diffstat (limited to 'apps/calendar/ajax')
-rw-r--r--apps/calendar/ajax/editeventform.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/calendar/ajax/editeventform.php b/apps/calendar/ajax/editeventform.php
index 9ae3ffa8d94..19f6a80a167 100644
--- a/apps/calendar/ajax/editeventform.php
+++ b/apps/calendar/ajax/editeventform.php
@@ -243,6 +243,16 @@ if($repeat['repeat'] != 'doesnotrepeat'){
$tmpl->assign('repeat_bymonth', $repeat['bymonth']);
$tmpl->assign('repeat_byweekno', $repeat['byweekno']);
}
+else {
+ $tmpl->assign('repeat_month', 'monthday');
+ $tmpl->assign('repeat_weekdays', array());
+ $tmpl->assign('repeat_interval', 1);
+ $tmpl->assign('repeat_end', 'never');
+ $tmpl->assign('repeat_count', '10');
+ $tmpl->assign('repeat_weekofmonth', 'auto');
+ $tmpl->assign('repeat_date', '');
+ $tmpl->assign('repeat_year', 'bydate');
+}
$tmpl->printpage();
-?> \ No newline at end of file
+?>