Permalink
Browse files

Dialog: Removed code that removes active state from buttons on pagehi…

…de. Fixes #5111.

The code was added because close buttons still had active state when you closed and re-opened a dialog (#1839). I tested without the code and that issue doesn't occur anymore (nav takes care of removing active state).
  • Loading branch information...
jaspermdegroot committed Jan 3, 2013
1 parent aded724 commit 4d60cd2f2efdb439bd3ae4b300d8a521f5f2347f
Showing with 0 additions and 3 deletions.
  1. +0 −3 js/widgets/dialog.js
View
@@ -59,9 +59,6 @@ $.widget( "mobile.dialog", $.mobile.widget, {
$target.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
.attr( "data-" + $.mobile.ns + "direction", "reverse" );
}
})
.bind( "pagehide", function( e, ui ) {
$( this ).find( "." + $.mobile.activeBtnClass ).not( ".ui-slider-bg" ).removeClass( $.mobile.activeBtnClass );
});
this._on( $el, {

0 comments on commit 4d60cd2

Please sign in to comment.