filterReset event triggers when using a reset button. Fixes #423

This commit is contained in:
Mottie 2013-11-19 17:25:21 -06:00
parent c5a7109f2a
commit aaaf171982

View File

@ -570,7 +570,8 @@ ts.filter = {
// reset button/link
if (wo.filter_reset) {
$(document).delegate(wo.filter_reset, 'click.tsfilter', function() {
ts.filter.searching(table, []);
// trigger a reset event, so other functions (filterFormatter) know when to reset
c.$table.trigger('filterReset');
});
}
if (wo.filter_functions) {