Skip to main content

Search and Top Navigation

#4982 closed enhancement (wontfix)

Opened November 27, 2009 05:59PM UTC

Closed December 08, 2009 04:33AM UTC

Last modified October 11, 2012 09:15PM UTC

Week end config

Reported by: geniusgroup Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

In current datepicker it enforces the css class ui-datepicker-week-end to TWO weekdays (e.g. SAT and SUN)

It is caused by the following code segment

((dow + firstDay + 6) % 7 >= 5

If we can change 5 to other numbers (e.g. 6), then the number of css class ui-datepicker-week-end could also be controlled and specific css formatting (td background color, font size, etc.) will be applied to corresponding column.

Attachments (0)
Change History (3)

Changed December 08, 2009 04:33AM UTC by kbwood comment:1

resolution: → wontfix
status: newclosed

You can use the beforeShowDay setting to add custom CSS classes to individual dates.

Changed December 15, 2009 04:47AM UTC by geniusgroup comment:2

but how to change the title row by using "beforeShowDay" ?

Example:

<tr class="ui-datepicker-title-row">

<td class="ui-datepicker-week-end-cell"><span title="SUN">SUN</span></td>

<td><span title="MON">MON</span></td>

...

<td class="ui-datepicker-week-end-cell"><span title="SAT">SAT</span></td>

</tr>

Since datepicker hardcoded SUN and SAT as weekend, I cannot apply different CSS settings to SUN and SAT title cell

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted