Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created new setting value named todayDate #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/definitions/modules/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
var i, r, c, p, row, cell, pageGrid;

var mode = module.get.mode();
var today = new Date();
var today = settings.todayDate || new Date();
var date = module.get.date();
var focusDate = module.get.focusDate();
var display = focusDate || date || settings.initialDate || today;
Expand Down Expand Up @@ -997,6 +997,7 @@
firstDayOfWeek: 0, // day for first day column (0 = Sunday)
constantHeight: true, // add rows to shorter months to keep day calendar height consistent (6 rows)
today: false, // show a 'today/now' button at the bottom of the calendar
todayDate: null, // default date to today button (can be change to other day)
closable: true, // close the popup after selecting a date/time
monthFirst: true, // month before day when parsing/converting date from/to text
touchReadonly: true, // set input to readonly on touch devices
Expand Down