Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5145 from jerone/master
Opening popup from within a listview does not restore button state
  • Loading branch information
Gabriel "_|Nix|_" Schulhof committed Oct 12, 2012
1 parent f9b5293 commit bf6a4cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/widgets/popup.js
Expand Up @@ -802,6 +802,11 @@ define( [ "jquery",

//remove after delay
setTimeout( function() {
// Check if we are in a listview
var $parent = $link.parent().parent();
if ($parent.hasClass("ui-li")) {
$link = $parent.parent();
}
$link.removeClass( $.mobile.activeBtnClass );
}, 300 );
};
Expand Down

0 comments on commit bf6a4cd

Please sign in to comment.