Skip to content

Commit

Permalink
Merge pull request #18 from mweimerskirch/start_of_week
Browse files Browse the repository at this point in the history
Set default value for "first day of week"
  • Loading branch information
zoltan-dulac committed Jan 24, 2015
2 parents 89c77d2 + 5e8d3cf commit 22c00d5
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 22c00d5

Please sign in to comment.