mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-03 20:34:42 +00:00
Changed "click" bindings to "vclick" for listview and anchors.
This commit is contained in:
parent
807be39d83
commit
c063e1ce65
2 changed files with 4 additions and 4 deletions
|
|
@ -102,7 +102,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
// if enter or space is pressed, trigger click
|
||||
case 13:
|
||||
case 32:
|
||||
target.trigger( "click" );
|
||||
target.trigger( "vclick" );
|
||||
|
||||
return false;
|
||||
break;
|
||||
|
|
@ -110,9 +110,9 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
});
|
||||
|
||||
// tapping the whole LI triggers click on the first link
|
||||
$list.delegate( "li", "click", function(event) {
|
||||
$list.delegate( "li", "vclick", function(event) {
|
||||
if ( !$( event.target ).closest( "a" ).length ) {
|
||||
$( this ).find( "a" ).first().trigger( "click" );
|
||||
$( this ).find( "a" ).first().trigger( "vclick" );
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -624,7 +624,7 @@
|
|||
|
||||
|
||||
//click routing - direct to HTTP or Ajax, accordingly
|
||||
$( "a" ).live( "click", function(event) {
|
||||
$( "a" ).live( "vclick", function(event) {
|
||||
|
||||
var $this = $(this),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue