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

added check for close button to fix issue #84 #97

Merged
merged 1 commit into from
Oct 13, 2011
Merged

added check for close button to fix issue #84 #97

merged 1 commit into from
Oct 13, 2011

Conversation

dtao
Copy link
Contributor

@dtao dtao commented Oct 12, 2011

When clicking on the Close button in dialog mode, first jQuery Mobile handles the click and navigates back one page, THEN the datebox widget handles the click again and does the same (by calling dialog('close')). This change adds a member to the payload argument passed to _dateboxHandler indicating that the 'close' event was triggered with a click on the Close button; this flag is then checked within the close method to detect whether it is necessary to call dialog('close') or not.

jtsage added a commit that referenced this pull request Oct 13, 2011
added check for close button to fix issue #84
@jtsage jtsage merged commit 47c80e6 into jtsage:master Oct 13, 2011
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

Successfully merging this pull request may close these issues.

None yet

2 participants