Skip to content

setDefaults region #159

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

Open
hungryMadCow opened this issue May 24, 2011 · 2 comments
Open

setDefaults region #159

hungryMadCow opened this issue May 24, 2011 · 2 comments

Comments

@hungryMadCow
Copy link

Awesome control :)

But when setting $.datepicker.setDefaults($.datepicker.regional['myregioncode']);

It does not take any values from my language file. I´ve tried it with the standard ui datepicker, and it works well, so I know (or at least I think :)) I´m doing it right.

Do I have to set all values programatically as in your example, or am I missing something?

@trentrichardson
Copy link
Owner

Tour call will be for the date picker, you need to make the similar call for the timepicker. Have a look at some of the localization files in the dev branch:

https://github.com/trentrichardson/jQuery-Timepicker-Addon/blob/dev/localization/jquery-ui-timepicker-de.js

need to call: $.timepicker.setDefaults($.timepicker.regional['your_region_code']);

@hungryMadCow
Copy link
Author

Hi Trent

Thx for answering so swiftly. Just went codeblind :) None of the other coders managed to see the missing : in my language file. Goes to show that one should wait at least a day before posting an issue :)

Keep up the excellent work!

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

No branches or pull requests

2 participants