prevent triggering of ajaxclick when bubbling up from clicking an anchor

This commit is contained in:
scottjehl 2010-10-02 15:29:46 -04:00
parent 033ed1af59
commit dfb7942ea6

View file

@ -168,8 +168,11 @@ $.fn.listview = function( options ) {
}
//tapping the whole LI triggers ajaxClick on the first link
$this.find( "li:has(a)" ).live( "tap", function() {
$( this ).find( "a:first" ).ajaxClick();
$this.find( "li:has(a)" ).live( "tap", function(event) {
if( !$(event.target).is('a') ){
$( this ).find( "a:first" ).ajaxClick();
return false;
}
});
});
};