mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-24 09:50:26 +00:00
prevent triggering of ajaxclick when bubbling up from clicking an anchor
This commit is contained in:
parent
033ed1af59
commit
dfb7942ea6
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue