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

Version Path
flapjack-1.6.0 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.6.0rc4 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.6.0rc3 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.6.0rc2 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.6.0rc1 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.5.0 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.5.0rc1 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.4.0 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.4.0rc1 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.3.0 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.3.0rc3 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.3.0rc2 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.3.0rc1 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.2.2 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.2.1 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.2.1rc3 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.2.1rc2 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.2.1rc1 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-1.2.0 lib/flapjack/gateways/web/public/js/tablesort.js
flapjack-0.9.6 lib/flapjack/gateways/web/public/js/tablesort.js