Skip to content

Commit

Permalink
Set default value for "first day of week". Fixes problem in Chrome wi…
Browse files Browse the repository at this point in the history
…th certain languages.
  • Loading branch information
mweimerskirch committed Feb 28, 2014
1 parent d390bb8 commit 5e8d3cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/js/jscalendar-1.0/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Calendar = function (firstDayOfWeek, dateStr, onSelected, onClose) {
this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"];
this.isPopup = true;
this.weekNumbers = true;
this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : Calendar._FD; // 0 for Sunday, 1 for Monday, etc.
this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : (Calendar._FD ? Calendar._FD : 0); // 0 for Sunday, 1 for Monday, etc.
this.showsOtherMonths = false;
this.dateStr = dateStr;
this.ar_days = null;
Expand Down
Loading

0 comments on commit 5e8d3cf

Please sign in to comment.