Permalink
Browse files

update pre javascript

  • Loading branch information...
1 parent cf8d90c commit 0b3f4a99b921f776bb4dfcdf3d171e8c0b192fc0 Greg Weber committed Apr 30, 2008
Showing with 6 additions and 6 deletions.
  1. +6 −6 demo/flavorzoom.html
View
@@ -25,20 +25,20 @@
<pre>
$(function() {
- var theTable = $('table.food_planner');
+ var theTable = $('table.food_planner')
- theTable.find("tbody > tr").mousedown(function(){
- $(this).find(":checkbox").click();
+ theTable.find("tbody > tr").find("td:eq(1)").mousedown(function(){
+ $(this).prev().find(":checkbox").click()
});
$("#filter").keyup(function() {
$.uiTableFilter( theTable, this.value );
- });
+ })
$('#filter-form').submit(function(){
- theTable.find("tbody > tr:visible:first").mousedown();
+ theTable.find("tbody > tr:visible > td:eq(1)").mousedown();
return false;
- }).focus();
+ }).focus(); //Give focus to input field
});
</pre>

0 comments on commit 0b3f4a9

Please sign in to comment.