diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-22 01:56:25 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-22 01:56:25 +0100 |
commit | b5a5a91b133192aa625b0479259528867a280ea7 (patch) | |
tree | c9bfd11304df67e0aa039c98ad2c59fbbb86081b /include | |
parent | 9ba1b8d7207c852e1cb323a25998065ca30b31a4 (diff) | |
parent | 4c84a2ce615be12adfbeb1067b5c6652330027bb (diff) | |
download | volse-hubzilla-b5a5a91b133192aa625b0479259528867a280ea7.tar.gz volse-hubzilla-b5a5a91b133192aa625b0479259528867a280ea7.tar.bz2 volse-hubzilla-b5a5a91b133192aa625b0479259528867a280ea7.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include')
-rw-r--r-- | include/datetime.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/datetime.php b/include/datetime.php index b0167edb2..63287d023 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -198,7 +198,7 @@ function timesel($format, $h, $m, $id='timepicker') { * @todo Once browser support is better this could probably be replaced with * native HTML5 date picker. */ -function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false) { +function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false, $first_day = 0) { $o = ''; $dateformat = ''; @@ -234,7 +234,7 @@ function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pic $o .= "<div class='date'><input type='text' placeholder='$readable_format' name='$id' id='$id' $input_text />"; $o .= (($required) ? '<span class="required" title="' . t('Required') . '" >*</span>' : ''); $o .= '</div>'; - $o .= "<script type='text/javascript'>\$(function () {var picker = \$('#$id').datetimepicker({step:5,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs}); $extra_js})</script>"; + $o .= "<script type='text/javascript'>\$(function () {var picker = \$('#$id').datetimepicker({step:5,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs,dayOfWeekStart:$first_day}); $extra_js})</script>"; return $o; } |