Navigation Menu

Skip to content

Commit

Permalink
update pre javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Weber committed Apr 30, 2008
1 parent cf8d90c commit 0b3f4a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions demo/flavorzoom.html
Expand Up @@ -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>

Expand Down

0 comments on commit 0b3f4a9

Please sign in to comment.