Opening popup from within a listview does not restore button state #5145

Merged
merged 1 commit into from Oct 11, 2012
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Split
View
@@ -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 );
};