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

Timepicker not closing when in an iFrame and using Firefox, IE9, Opera. #68

Open
bongobongo opened this issue Apr 18, 2013 · 0 comments

Comments

@bongobongo
Copy link

I'm testing your nifty jQuery timepicker in an iframe.
In Firefox, IE9, and Opera (latest), it will not close it when used in iFrame.

In Chrome and Safari it works fine.

I have same code in a page not using iFrame, there it works as it should.

I'm also using jQuery datepicker (the standard one) in the same pages as for the timepicker.
That also has an issue not closing on a date select, when in an iframe.
There I made a fix using:
onSelect: function(selectedDate) {
$('#ui-datepicker-div').hide();
}

I was thinking about using the code below for a workaround with your timepicker:

I was hoping to be able to do something similar in timepicker:
onSelect: function(time, inst) {
// do something here
}

But my problem is that I need to be able to detect the dblclick or second click in the timepicker. So far I have not figured out what kind of code to use in order to know if to close the timepicker or not. onClose is not triggered, so cannot be used (AFAIK). If there was a flag set when the close conditions where met, and I could test that flag, then it should be easy...

So... do you know how I can make timepicker to close properly when used inside an iFrame, with the problem browsers mentioned above? Either by some nifty workaround code inside onSelect, or if you mabe fix this in main code of timepicker. Do not know if this is a bug or if it is browser issues.

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