Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

FIX : datepicker date format for other locale used #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ptournem
Copy link

@ptournem ptournem commented Oct 25, 2017

This pull request add the compatibility with requireJS

---- FIXES ----
1 - Date format
Before the fix, if the user locale is, for example, the french locale, the date format returned is dd/mm/yy instead of yy-mm-dd. If the user click on the 13th of December, the date won't be recognised by moment.
Now, the datepicker always returns a yy-mm-dd formatted date value.

2 - Dragging not allowed
Even is allowDragging option was set to false, it called the draggable jquery-ui fonction to destroy some element during the initialization.
I surrounded this call so that it is done only if the allowDragging option is enabled
Moreover, if jquery-ui is not included because not needed, it will also work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant