Merge pull request #1393 from ray58750034/31d4

Update functional tests: bind click event to objects
This commit is contained in:
John Bender 2011-08-10 17:45:54 -07:00
commit cba80d9fff
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>