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.

Comments

googletorp’s picture

Issue summary: View changes
googletorp’s picture

Status: Active » Needs review
StatusFileSize
new7.11 KB

I'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.

vijaycs85’s picture

Issue tags: +d8date
googletorp’s picture

StatusFileSize
new4.74 KB
new2.48 KB

I 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.

Anonymous’s picture

Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new42.33 KB

Commented on wrong issue /sorry for hassle/

googletorp’s picture

Issue summary: View changes
Status: Needs work » Needs review

@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.

gaëlg’s picture

googletorp’s picture

Status: Needs review » Closed (duplicate)

Let's close this as duplicate, it's the same goal we are trying to achieve.