mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-20 20:31:52 +00:00
Merge pull request #1393 from ray58750034/31d4
Update functional tests: bind click event to objects
This commit is contained in:
commit
cba80d9fff
2 changed files with 6 additions and 6 deletions
|
|
@ -11,13 +11,13 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$( "a" ).bind("tap",function( e ){
|
$( "a" ).bind("tap click",function( e ){
|
||||||
$("#log")
|
$("#log")
|
||||||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
|
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"</li>")
|
||||||
.listview("refresh");
|
.listview("refresh");
|
||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
.bind("click", false);
|
.bind("tap click", false);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,19 +10,19 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$(".ui-grid-d a").bind("tap", function(e){
|
$(".ui-grid-d a").bind("tap click", function(e){
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$("#log")
|
$("#log")
|
||||||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: grid '"+$(this).text()+"' hidden</li>")
|
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: grid '"+$(this).text()+"' hidden</li>")
|
||||||
.listview("refresh");
|
.listview("refresh");
|
||||||
return false;
|
return false;
|
||||||
}).bind("click", false);
|
}).bind("tap click", false);
|
||||||
$("#showbtn").bind("tap", function(e){
|
$("#showbtn").bind("tap click", function(e){
|
||||||
$(".ui-grid-d a").show();
|
$(".ui-grid-d a").show();
|
||||||
$("#log")
|
$("#log")
|
||||||
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: show all buttons</li>")
|
.prepend("<li>"+ e.type +" event; target: "+ e.target.nodeName +"; message: show all buttons</li>")
|
||||||
.listview("refresh");
|
.listview("refresh");
|
||||||
}).bind("click", false);
|
}).bind("tap click", false);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue