mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
append 'click' event listener for no-touch support device test.
This commit is contained in:
parent
5158c6f7cb
commit
31d45a76e2
2 changed files with 6 additions and 6 deletions
|
|
@ -11,13 +11,13 @@
|
|||
|
||||
<script>
|
||||
$(function(){
|
||||
$( "a" ).bind("tap",function( e ){
|
||||
$( "a" ).bind("tap click",function( e ){
|
||||
$("#log")
|
||||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
|
||||
.listview("refresh");
|
||||
return false;
|
||||
})
|
||||
.bind("click", false);
|
||||
.bind("tap click", false);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,19 +10,19 @@
|
|||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".ui-grid-d a").bind("tap", function(e){
|
||||
$(".ui-grid-d a").bind("tap click", function(e){
|
||||
$(this).hide();
|
||||
$("#log")
|
||||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: grid '"+$(this).text()+"' hidden</li>")
|
||||
.listview("refresh");
|
||||
return false;
|
||||
}).bind("click", false);
|
||||
$("#showbtn").bind("tap", function(e){
|
||||
}).bind("tap click", false);
|
||||
$("#showbtn").bind("tap click", function(e){
|
||||
$(".ui-grid-d a").show();
|
||||
$("#log")
|
||||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: show all buttons</li>")
|
||||
.listview("refresh");
|
||||
}).bind("click", false);
|
||||
}).bind("tap click", false);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Reference in a new issue