Skip to main content

Search and Top Navigation

#2229 closed bug (fixed)

Opened January 24, 2008 05:10AM UTC

Closed March 05, 2008 04:26AM UTC

Last modified February 26, 2009 11:24AM UTC

confusion between datepicker_currentDay class and datepicker_today class

Reported by: Zola Owned by: kbwood
Priority: minor Milestone: 1.5
Component: ui.core Version: 1.2.2
Keywords: Cc:
Blocked by: Blocking:
Description

minor-but-annoying.

in the ui.css file, there seems to be a class intended to let you use a different background to differentiate between "today" and "day selected"

I set the current_day to light purple and the datepicker_today class to blue.

See the attached image:

When you open up the calendar, you see that today, January 23rd, is in purple like it's supposed to be. (left calendar view).

However, when I select a day, THAT day is then purple and the current day takes on the blue color (right calendar view)

If I swapped the two around, it still has the same problem, just in reverse--the current day would be blue, and change to purple while the selected day would turn to blue.

I think it's just class confusion--those two class names are very similar and it's hard to tell which class is for today and which is for the selected day, and clearly, that's what got messed up in the code.

Maybe it would be better to rename datepicker_today class to "datepicker_SelectedDate"? It would be nice to be able to use two different colors and have the current day remain the same color and have the selected day a different color.

Attachments (0)
Change History (4)

Changed January 29, 2008 12:30AM UTC by kbwood comment:1

owner: paulkbwood
status: newassigned

There are three CSS classes involved (see the attached image):

  • datepicker_today marks the date right now.
  • datepicker_currentDate marks the date currently selected in the text control.
  • datepicker_daysCellOver marks the date that would be selected if clicked.

Changed March 05, 2008 04:26AM UTC by kbwood comment:2

resolution: → fixed
status: assignedclosed

The latest version applies both datepicker_today and datepicker_currentDay if applicable. Previously currentDay overrode today. Also, currentDay is only applied if a date is actually selected, not when the input is blank and the default date is highlighted.

Changed May 24, 2008 03:39AM UTC by comment:3

milestone: 1.2.3

Milestone 1.2.3 deleted

Changed February 26, 2009 11:24AM UTC by paul comment:4

milestone: → 1.5