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

Commit

Permalink
Popup: check if link is in listview
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Oct 9, 2012
1 parent b1837c7 commit cb54f03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/widgets/popup.js
Expand Up @@ -786,6 +786,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 cb54f03

Please sign in to comment.