Skip to content
Browse files

Merge pull request #5145 from jerone/master

Opening popup from within a listview does not restore button state
  • Loading branch information...
2 parents 39aea2b + cb54f03 commit 6b468df9261a5ae5605a8b1418e888c5903c1fcd @gabrielschulhof gabrielschulhof committed Oct 11, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/widgets/popup.js
View
5 js/widgets/popup.js
@@ -801,6 +801,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 6b468df

Please sign in to comment.
Something went wrong with that request. Please try again.