trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Add altRedirectFocus option #725

Closed emlun closed 10 years ago

emlun commented 10 years ago

If set to true (default), the altField will redirect focus to the main field (this is how it always worked before this change). Otherwise, the altField will not redirect its focus, and the altField will behave as a normal text field that can be edited by the user.

Note that this option is effective only at construction time - changing it on an existing instance will have no effect.

trentrichardson commented 10 years ago

Thanks for this, great option. As for the .jshintrc question what you have seems correct by prefixing with jasmine and adding it as a predefined variable in the jshint config:

http://jasmine.github.io/2.0/introduction.html#section-Spies:_createSpy