Fix first day of the week in datepickers

Fixes #2188
This commit is contained in:
Francis Lachapelle
2013-01-21 12:12:50 -05:00
parent a78d7007d7
commit be459fa946
9 changed files with 37 additions and 9 deletions

View File

@@ -220,7 +220,8 @@ function initPreferences() {
button = $("enableVacationEndDate");
if (button) {
jQuery("#vacationEndDate_date").closest(".date").datepicker({autoclose: true, position: 'above'});
jQuery("#vacationEndDate_date").closest(".date").datepicker(
{ autoclose: true, position: 'above', weekStart: $('weekStartDay').getValue() });
button.on("click", function(event) {
if (this.checked)
$("vacationEndDate_date").enable();