Permalink
Browse files

Popup: check if link is in listview

  • Loading branch information...
1 parent b1837c7 commit cb54f0372eae0467880750529e7ac6751aa54c59 @jerone jerone committed Oct 9, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/widgets/popup.js
View
5 js/widgets/popup.js
@@ -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 );
};

0 comments on commit cb54f03

Please sign in to comment.