Skip to content

setDate and getDate fixes #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
9 commits merged into from
Nov 27, 2010
Merged

setDate and getDate fixes #39

9 commits merged into from
Nov 27, 2010

Conversation

doublerebel
Copy link
Contributor

Hi Trent,

I've added several commits to fix the issues in the tracker. However, I have changed from overwriting the internal _getDate and _setDate functions to overwriting the _setDateDatepicker and _getDateDatepicker functions, as those are the methods for setting and getting that are described and recommended in the datepicker docs (accessed by i.e. $(target).datepicker('getDate') ). This may break some users code as a result, but will be most compatible going forward.

  • Issue 16 I can't replicate with my most recent code. Can you? I think it is fixed.
  • Issue 23 I can't replicate with the default options. However, when min/max values are enabled, manual input of the datetime does not work correctly, as the timepicker is very quick to correct for min/max. Not sure of the fix yet.
  • Issue 24 can be solved by creating new minTime and maxTime settings to restrict the values. I haven't implemented this yet.
  • Issue 28 I have not tested
  • Issue 31 should be solved by my setDate updates
  • Issue 32 I have not tested
  • Issue 34 Is fixed
  • Issue 35 Is fixed
  • Issue 38 Is fixed

Cheers, let me know if you have any questions.

Charles

based on timeFormat + a space + dateFormat
(now restricts am/pm correctly based on timeFormat)
Extra tabs removed and line endings cleaned
getDate is now properly accessible from $(target).datepicker('getDate') and correctly returns date object with time
setDate is now properly accessible from $(target).datepicker('setDate') and can set both date and time
added new method setTime, accessible from $(target).datepicker('setTime')
calling .datepicker('setDate') with no date now sets the default date as in original datepicker code
time is set to default when calling .datepicker('setTime') with no time or calling 'setDate' with a date and no time
added new internal function _parseTime to parse string times from any source
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant