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

View file

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