|
CalendarXP.net Support Most forums here are private and invisible to public.
|
View previous topic :: View next topic |
Author |
Message |
vivonet
Joined: 10 Feb 2007 Posts: 4
|
Posted: Mon Feb 12, 2007 7:00 pm Post subject: Bug with the fHeaderClick function in 445 Demo |
|
|
Hi support,
I noticed that in the 445 demo calendar, if you select the first day of a period. then you select a later week, and THEN you click on the period link, only the first day of the period gets cleared. I need to change this behavior so that when a period link is clicked, all the days in the period get cleared. Please help!
This can be reproduced in any 445 demo calendar. View the screenshot to see how this can happen. If you click the period link in the scenario shown, you see this bug in action.
I need to get this pass dev asap. Please help!
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Mon Feb 12, 2007 8:33 pm Post subject: |
|
|
Thank you for reporting the bug. You can fix it by replacing the fHeaderClick() in plugins.js with the following code:
Code: | function fHeaderClick (y,m) {
var dateRange = fGetFinPeriod(y,m);
if ( fIsSelected(dateRange[0][0],dateRange[0][1],dateRange[0][2]) ) {
fAddRange(dateRange[0][0],dateRange[0][1],dateRange[0][2],false);
fAddRange(dateRange[1][0],dateRange[1][1],dateRange[1][2],true);
fRemoveRange(dateRange[0][0],dateRange[0][1],dateRange[0][2],false);
fRemoveRange(dateRange[1][0],dateRange[1][1],dateRange[1][2],false);
fRemoveRange(dateRange[0][0],dateRange[0][1],dateRange[0][2]+1,true);
}
else
{
fAddRange(dateRange[0][0],dateRange[0][1],dateRange[0][2],false);
fAddRange(dateRange[1][0],dateRange[1][1],dateRange[1][2],true);
}
fRepaint();
}
|
We'll also fix it in the new version.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
vivonet
Joined: 10 Feb 2007 Posts: 4
|
Posted: Mon Feb 12, 2007 9:35 pm Post subject: Thank you |
|
|
Thank you for that. That worked out well.
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group
|