aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-21 23:49:29 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-21 23:49:29 +0100
commit74b574d0b1874b0811837d9ac4472f1084800aeb (patch)
tree845996f86db36d7d7121074c870c82f63a931abb /include
parentd726c921eb5902483dfeb82383829e9309f6b65c (diff)
downloadvolse-hubzilla-74b574d0b1874b0811837d9ac4472f1084800aeb.tar.gz
volse-hubzilla-74b574d0b1874b0811837d9ac4472f1084800aeb.tar.bz2
volse-hubzilla-74b574d0b1874b0811837d9ac4472f1084800aeb.zip
datetimepicker should also respect first day of week setting
Diffstat (limited to 'include')
-rw-r--r--include/datetime.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/datetime.php b/include/datetime.php
index b0167edb2..5ae33d1a0 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,timepickerScrollbar:false,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs,dayOfWeekStart:$first_day}); $extra_js})</script>";
return $o;
}