View previous topic :: View next topic |
Author |
Message |
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 6:38 pm Post subject: How to disable dates in the past? |
|
|
Simply set the gBegin option to gToday in theme-name.js file, as following:
Code: | var gBegin=gToday;
var gEnd=[2030,12,31]; |
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
mpersinger
Joined: 15 Sep 2006 Posts: 2 Location: Missouri
|
Posted: Fri Mar 16, 2007 10:40 pm Post subject: Hrm, Tried this and it did not work |
|
|
I added changed this:
var gBegin=[1980,1,1];
to this:
var gBegin=[gToday];
and it disabled ALL days, past, present, future. Put lines thru all of them. Will not let me select any of them.
What did I do wrong?
Monte
_________________ Monte |
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Fri Mar 16, 2007 10:50 pm Post subject: |
|
|
Obviously, there should be no brackets around the gToday.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
mpersinger
Joined: 15 Sep 2006 Posts: 2 Location: Missouri
|
Posted: Fri Mar 16, 2007 10:57 pm Post subject: Thanks |
|
|
Obviously I missed that one.
Thanks
_________________ Monte |
|
Back to top |
|
|
|