simplified tap binding to any list items that contain anchors

This commit is contained in:
scottjehl 2010-09-18 07:14:36 -04:00
parent abef220bef
commit 87e8fcf9b5

View file

@ -157,9 +157,11 @@ $.fn.listview = function( options ) {
.end()
.find( "p,ul,dl" )
.addClass( "ui-li-desc" );
//tapping the whole LI triggers ajaxClick on the first link
$this.find( "li:not(.ui-li-grouping)" ).live( "tap", function() {
$this.find( "li:has(a)" ).live( "tap", function() {
$( this ).find( "a:first" ).ajaxClick();
});
});