Closed (fixed)
Project:
Event
Version:
4.7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2005 at 11:48 UTC
Updated:
17 Aug 2006 at 17:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
stelman commentedVerified bug. I just stumbled across this same issue.
Comment #2
darren ohI believe this is due to line 501 of event.module (function event_calendar_month):
It appears to check for the current day without checking the month or year. I hope there is a patch for this soon.
Comment #3
pwolanin commentedThis doesn't seem to happen for me when using the 4.7 version of the code. Was this changed in the CVS version?
A related issue of "Today" being advanced too soon is here:
http://drupal.org/node/65210
Comment #4
darren ohActually, this is now the 4.7 version. I don't think it's related to the issue of the date being advanced too soon. To reproduce this bug, look at months other than the current month. You will see that every day with the same number as today is highlighted.
You can see examples here:
July http://lakelandsda.org/event/2006/07/21/month/all/all/1
August http://lakelandsda.org/event/2006/08/21/month/all/all/1
Looking at the URL, occurred to me that it is the day given in the URL that is highlighted. I was able to confirm this by typing days in the URL. Whatever day is in the URL is highlighted.
This means that the problem is with the links for next and previous months. Maybe the event API lacks a method to call up a month without specifying a day.
Comment #5
pwolanin commentedOk, but this doesn't happen for me:
http://www.princetondems.org/event/2006/07/21/month/all/all/1
http://www.princetondems.org/event/2006/08/21/month/all/all/1
using this version:
// $Id: event.module,v 1.183.2.6 2006/05/22 13:54:07 killes Exp $
Comment #6
darren ohI'm using exactly the same version of event.module. Your calendar looks completely different from mine. Are you using a custom calendar theme?
Comment #7
pwolanin commentedYes, we have customized the CSS and some of the theme functions for a cleaner display. However, this shouldn't affect the underlying code in event.module.
Actually, the difference may be at the CSS level. Here's a comparison of the page source for this month vs. next month:
note that both are "selected", but only the first is "today".
here's the CSS we're using:
The original CSS file has these two directives:
So it seems that the real bug is in the application of or styling for the "selected" attribute, not for the "today" attribute.
Comment #8
darren ohThanks for such a quick solution. The problem was that the styling for the selected day came after the styling for today, making them look alike. This patch puts them in the correct order.
Comment #9
killes@www.drop.org commentedI don't mind to commit the patch, but I fail to see why it would fix any problem. Can somebody with more CSS understanding than me explain this?
Comment #10
darren ohUsers cannot be sure they are viewing the current month unless they already know the date. Here is the problem: When one views the calendar, today's date is selected and appears with a blue background. When one advances to the next month, the same day of the month is selected and shows a blue background.
This confuses users who assume (as I and others in this thread did) that the blue background highlights today's date. The truth is that today's date is highlighted in red. The user will never see that without modifying the URL to select a different date, because the color of the selected date covers up the color of today's date.
The patch in #8 eliminates this confusion by preventing the selected date color from covering up today's date color.
Comment #11
killes@www.drop.org commentedapplied
Comment #12
darren ohMuch appreciated, killes!
Comment #13
darren ohCan we get this committed to the 4.7 branch?
Comment #14
darren ohOpened issue 79197 to request fixes to be backported to 4.7.