Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Forms Library
-
Labels:None
-
Environment:Should be universal (I've tested the JS on ie6,ff3,opera9.61 and safari3.1.2
-
Database:Any
-
Affected Branches:MOODLE_19_STABLE
Description
Adds 3 letter day abbrieviations to the options in the day <select>. They are recalculated whenever the month or year is changed.
Not quite perfect in that if javascript isn't enabled the user will be left with the days of the week for only the current month/year but this doesn't stop data entry, just might confuse people
Have now partially rewritten it so that:
If javascript is not enabled, no weekday abbreviations are added at all
On page load all dateselectors and datetimeselectors have the right days added
The day lists only show enough days for the length of the month (ie november doesn't give 31st as an option), if javascript is disabled 31 are always shown
Attached is the new versions of dateselsector and datetimeselector plus a new weekdays.js file, all to go in lib/form