Sha256: 80dfd5c4720218561606d388a65f8cb15e4a2651bafae699e67030945bf1bbf9
Contents?: true
Size: 720 Bytes
Versions: 9
Compression:
Stored size: 720 Bytes
Contents
var filtertable = (function() { return { initialize : function() { var theTable = $('table.filter_table'); var filter = $('#filter'); filter.live('change, keyup', function(){ $.uiTableFilter(theTable, this.value); }); //override the submit so it doesn't try to push a form $('#filter_form').submit(function () { filter.keyup(); return false; }).focus(); //Give focus to input field $('.filter_button').click(function(){filter.change()}); } }; })(); $(document).ready(function() { // initialize the filter table filtertable.initialize(); });
Version data entries
9 entries across 9 versions & 1 rubygems