mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Merge pull request #3441 from imjoshdean/fix-3351
Fix to #3351, dialogs reopening when attempting to close them
This commit is contained in:
commit
0a81d6d463
1 changed files with 4 additions and 1 deletions
|
|
@ -39,7 +39,10 @@ $.widget( "mobile.dialog", $.mobile.widget, {
|
|||
// this must be an anonymous function so that select menu dialogs can replace
|
||||
// the close method. This is a change from previously just defining data-rel=back
|
||||
// on the button and letting nav handle it
|
||||
headerCloseButton.bind( "vclick", function() {
|
||||
//
|
||||
// Use click rather than vclick in order to prevent the possibility of unintentionally
|
||||
// reopening the dialog if the dialog opening item was directly under the close button.
|
||||
headerCloseButton.bind( "click", function() {
|
||||
self.close();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue