1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

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
This commit is contained in:
Allan Jardine 2015-08-25 14:17:32 +01:00
parent e7e439dd0a
commit 6352732eac
2 changed files with 11 additions and 7 deletions

View File

@ -1 +1 @@
21448db57ac0b3c1b0445c433a86d3dfe1aaf727
53f2a201c020addc66c5fb51472a3b637bfd9abd

View File

@ -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();
}
} );
} );
} );</code>