Skip to content
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

validation #31

Open
lookfirst opened this issue Nov 14, 2011 · 2 comments
Open

validation #31

lookfirst opened this issue Nov 14, 2011 · 2 comments

Comments

@lookfirst
Copy link

How about the ability to validate if the data in the input type=text is a valid timepicker time?

@lookfirst
Copy link
Author

What I'd like is when onClose is fired, if the time in the intput field isn't a valid timepicker time, that it is just cleared out.

@lookfirst
Copy link
Author

when my onClose method is called, it is passed an 'inst' object... but looking at inst.settings, it doesn't have the full object...

ideally, i'd be able to do something like this (in coffeescript):

onClose: (time, inst) ->
    return inst.isValid()

and that would prevent the timepicker dialog from going away.

That said, I can't even easily do this:

onClose: (time, inst) ->
    $.timepicker.parseTime(inst.settings, time)

The reason is that inst.settings isn't a complete settings object.

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

1 participant