fixed issue with select menus not opening again after you close them.

This commit is contained in:
scottjehl 2011-01-26 21:02:08 -05:00
parent 7ba7315e27
commit 61bee4e276
2 changed files with 4 additions and 1 deletions

View file

@ -49,7 +49,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
}
})
//destroy the dialog after hiding
.bind("pagehide",function(){
.bind("pagehide.dialog",function(){
self.destroy();
$(this).remove();
});

View file

@ -160,6 +160,9 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
$(this).blur();
button.focus();
});
//unbind dialog destroy on close
menuPage.unbind("pagehide.dialog");
//button events
button