Comment 3 for bug 1723651

Revision history for this message
Jason Stephenson (jstephenson) wrote :

There is already a check in the opac/parts/place_hold.tt2 template to check for the XUL client. If that is detected, then the text hint to enter the date in mm/dd/yyyy format is printed.

I think it would be better to check date element support with JavaScript as described in the quirksmode.org link that Kathy shared.

Depending on what is meant by "fallback," I can see 3 possibilities:

1. If the JavaScript determines that the date element is not supported, then add some JavaScript to write out the hint on how to enter the date.

2. If the JavaScript determines that the date element is not supported, then use a jQuery Datepicker.

3. Switch from the HTML5 date element to the jQuery Datepicker in all cases.

Of these, Number 1 is the easiest. Number 2 is the most complicated. Number 3 makes more sense to me than number 2, because why have different date pickers?

If anyone else sees any other options, please, chime in.