Permalink
Browse files

Merge pull request #5588 from jquery/fix-5583

Panel: Make sure active state is applied to and removed from buttons in header too.
  • Loading branch information...
2 parents e471b77 + 975200e commit 35ee73015a3e4ac7d1ce96dbc85582f2b98e98db @jaspermdegroot jaspermdegroot committed Feb 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/panel.js
View
@@ -222,7 +222,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
if ( this.href.split( "#" )[ 1 ] === self._panelID && self._panelID !== undefined ) {
e.preventDefault();
var $link = $( this );
- if ( $link.is( ":jqmData(role='button')" ) ) {
+ if ( ! $link.hasClass( "ui-link" ) ) {
$link.addClass( $.mobile.activeBtnClass );
self.element.one( "panelopen panelclose", function() {
$link.removeClass( $.mobile.activeBtnClass );

0 comments on commit 35ee730

Please sign in to comment.