append 'click' event listener for no-touch support device test.

This commit is contained in:
Ray Ling 2011-04-05 08:59:19 +08:00
parent 5158c6f7cb
commit 31d45a76e2
2 changed files with 6 additions and 6 deletions

View file

@ -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>

View file

@ -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>