View previous topic :: View next topic |
Author |
Message |
Vermule
Joined: 23 May 2006 Posts: 27
|
Posted: Thu May 25, 2006 8:27 pm Post subject: Highlighting multiple days |
|
|
I saw the FAQ http://www.calendarxp.net/forum/viewtopic.php?t=146 on this, but this seems different than what I would like to do.
I have 2 fields, arrive date and depart date. When I have an arrival date selected, I want it to appear when I go to choose the depart date. When I open the calendar again, both the arrival and depart date should be highlighted.
How would I accomplish this
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Fri May 26, 2006 4:40 am Post subject: |
|
|
All you need is to have the following function in plugins.js:
Code: | function fIsSelected(y,m,d) {
var sd=fParseInput(_startc.value), ed=fParseInput(_endc.value);
if (sd&&sd[2]==d&&sd[1]==m&&sd[0]==y||ed&&ed[2]==d&&ed[1]==m&&ed[0]==y) return true;
else return false;
} |
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
Vermule
Joined: 23 May 2006 Posts: 27
|
Posted: Fri May 26, 2006 3:46 pm Post subject: |
|
|
Thank you, this worked perfectly.
|
|
Back to top |
|
|
|