From 6352732eacc5bac1825682016ca3ed1d81d87623 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 25 Aug 2015 14:17:32 +0100 Subject: [PATCH] Fix - example: Column filtering would reset the paging on change event, which could give the impression that pading didn't happen since it is immediately over written. Thread 29670 --- .datatables-commit-sync | 2 +- examples/api/multi_filter.html | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index b1e58784..8c77701a 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -21448db57ac0b3c1b0445c433a86d3dfe1aaf727 +53f2a201c020addc66c5fb51472a3b637bfd9abd diff --git a/examples/api/multi_filter.html b/examples/api/multi_filter.html index eb85202b..1b52facd 100644 --- a/examples/api/multi_filter.html +++ b/examples/api/multi_filter.html @@ -40,9 +40,11 @@ $(document).ready(function() { var that = this; $( 'input', this.footer() ).on( 'keyup change', function () { - that - .search( this.value ) - .draw(); + if ( that.search() !== this.value ) { + that + .search( this.value ) + .draw(); + } } ); } ); } ); @@ -581,9 +583,11 @@ $(document).ready(function() { var that = this; $( 'input', this.footer() ).on( 'keyup change', function () { - that - .search( this.value ) - .draw(); + if ( that.search() !== this.value ) { + that + .search( this.value ) + .draw(); + } } ); } ); } );