Sha256: 027e18d406b9591b1236caff1b2e9f6d9f6602f6e34482f25f192dd5e0791ae1
Contents?: true
Size: 1.1 KB
Versions: 45
Compression:
Stored size: 1.1 KB
Contents
// // Thanks to http://mottie.github.io/tablesorter/docs/example-widget-filter.html. // $(function() { $("table.tablesorter").tablesorter({ headers: { 4: { sorter: 'customtime' }, 5: { sorter: 'customtime' }, 6: { sorter: 'customtime' } }, widthFixed : false, widgets: ["filter"], widgetOptions : { filter_childRows : true, filter_columnFilters : true, filter_filteredRow : 'filtered', filter_formatter : null, filter_functions : null, filter_hideFilters : true, filter_ignoreCase : true, filter_liveSearch : true, filter_reset : 'button.reset', filter_saveFilters : true, filter_searchDelay : 300, filter_serversideFiltering: false, filter_startsWith : false, filter_useParsedData : false } }); $('button[data-filter-column]').click(function(){ var filters = [], $t = $(this), col = $t.data('filter-column'), txt = $t.data('filter-text') || $t.text(); filters[col] = txt; $.tablesorter.setFilters( $('table.hasFilters'), filters, true ); return false; }); });
Version data entries
45 entries across 45 versions & 1 rubygems