From abcc70722c3577e63b53fcd3acf19d2916d810df Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 5 Feb 2015 19:37:55 -0800 Subject: event form cleanup backported from trinidad - still need to style the checkboxes --- include/datetime.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/datetime.php') diff --git a/include/datetime.php b/include/datetime.php index 346d03bd4..a387d84c4 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -174,7 +174,7 @@ function timesel($format, $h, $m, $id='timepicker') { * @param $maxfrom * set maximum date from picker with id $maxfrom (none by default) */ -function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '') { +function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '',$required = false) { // Once browser support is better this could probably be replaced with native HTML5 date picker $o = ''; @@ -209,6 +209,7 @@ function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pic $readable_format = str_replace('i','MM',$readable_format); $o .= "
"; + $o .= (($required) ? '*' : ''); $o .= '
'; $o .= ""; return $o; -- cgit v1.2.3