Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

button dialog works in one place, fails in another #66

Open
rlad opened this issue Feb 16, 2013 · 1 comment
Open

button dialog works in one place, fails in another #66

rlad opened this issue Feb 16, 2013 · 1 comment

Comments

@rlad
Copy link

rlad commented Feb 16, 2013

I'm trying to use simpledialog2 in button mode, and it's working in one place in my program but fails in another.

Where it fails, the dialog either doesn't appear at all, or appears for a moment, then disappears. Even when it's not there, touching the screen triggers button events (which appear in the console log).

The place where it doesn't work is a listview managed by Jquery Scrollz for lazy loading:
https://github.com/zippy1978/jquery.scrollz

Here are examples of the code that works and doesn't work:
https://gist.github.com/rlad/3435deb7076cafcc5945

Any help would be appreciated!

@rlad
Copy link
Author

rlad commented Feb 28, 2013

I solved it by increasing the zindex to 10000. But then another problem cropped up: clicking a button on the dialog also would produce a click event on the listview under the dialog.

I solved that one by putting in a delay of 400ms during which time I ignored subsequent click events. I'd hope that such kludges wouldn't be necessary though!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant