Permalink
Browse files

Merge pull request #5145 from jerone/master

Opening popup from within a listview does not restore button state
  • Loading branch information...
1 parent f9b5293 commit bf6a4cd00ba8ddf6e1f5ef314289bdd85c441b61 @gabrielschulhof gabrielschulhof committed with gabrielschulhof Oct 11, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/widgets/popup.js
View
@@ -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 );
};

0 comments on commit bf6a4cd

Please sign in to comment.