From cb54f0372eae0467880750529e7ac6751aa54c59 Mon Sep 17 00:00:00 2001 From: jerone Date: Tue, 9 Oct 2012 11:29:09 +0200 Subject: [PATCH] Popup: check if link is in listview --- js/widgets/popup.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/widgets/popup.js b/js/widgets/popup.js index 46744cf94fb..cecd45dff84 100644 --- a/js/widgets/popup.js +++ b/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 ); };