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

Commit cb54f03

Browse files
committed
Popup: check if link is in listview
1 parent b1837c7 commit cb54f03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/widgets/popup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,11 @@ define( [ "jquery",
786786

787787
//remove after delay
788788
setTimeout( function() {
789+
// Check if we are in a listview
790+
var $parent = $link.parent().parent();
791+
if ($parent.hasClass("ui-li")) {
792+
$link = $parent.parent();
793+
}
789794
$link.removeClass( $.mobile.activeBtnClass );
790795
}, 300 );
791796
};

0 commit comments

Comments
 (0)