Permalink
Browse files

remove active button state on buttons that close dialogs. Fixes #1839

  • Loading branch information...
scottjehl
scottjehl committed Jun 17, 2011
1 parent 0cff633 commit 1dd66088297f891a13ff45641cda78aba3f7365c
Showing with 3 additions and 0 deletions.
  1. +3 −0 js/jquery.mobile.dialog.js
@@ -43,6 +43,9 @@ $.widget( "mobile.dialog", $.mobile.widget, {
.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
.attr( "data-" + $.mobile.ns + "direction", "reverse" );
}
})
.bind( "pagehide", function() {
$( this ).find( "." + $.mobile.activeBtnClass ).removeClass( $.mobile.activeBtnClass );
});
},

0 comments on commit 1dd6608

Please sign in to comment.