Some browsers doesn't support the HTML 5 date input, so we need to add a JS fallback to support those.
This should improve the usability for people using there browsers (like firefox, IE) dramatically, as all people expect to get support entering a date with the correct format in a date field.
Note this issue it not about the design of the date picker in various core themes.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Näyttökuva 2015-04-13 kello 14.06.17.png | 42.33 KB | Anonymous (not verified) |
| #4 | interdiff.txt | 2.48 KB | googletorp |
| #4 | drupal-date-field-js-fallback-4.patch | 4.74 KB | googletorp |
| #2 | drupal-date-field-js-fallback-2.patch | 7.11 KB | googletorp |
Comments
Comment #1
googletorp commentedComment #2
googletorp commentedI've added a patch for this.
I've looked at how it's done for machine name fields and copied the style from there.
In order to make a date picker we need to have the date format which I've added to the date element, since the process function doesn't have access to the wrapper element.
Note: If testing this with the seven theme - it does some CSS overrides for jquery.ui theme, and thus the styles for the datepicker is more or less broken. I believe this should be handled in a separate issue.
Comment #3
vijaycs85Comment #4
googletorp commentedI made a mistake making the last patch, which included some changes for debugging JS behaviors.
Also some of the documentation was off.
New patch included.
Comment #5
Anonymous (not verified) commentedCommented on wrong issue /sorry for hassle/
Comment #6
googletorp commented@b0unty You should note there is a separate issue for the theming of the date picker, which will look different depending on which theme is being used. This issue is not about theming the date picker.
I mentioned the styling issues with the Seven theme in #2 and have added it as a related issue (see the right sidebar)
Putting this back to needs review.
Comment #7
gaëlgIsn't it a duplicate of #1835016: Polyfill date input type?
Comment #8
googletorp commentedLet's close this as duplicate, it's the same goal we are trying to achieve.