Fix: Clear button in search box wasn't clearing the filter

pull/57/head
Allan Jardine 11 years ago
parent 2ba2b09b52
commit 8c797a5854

@ -32,7 +32,7 @@ jQuery.fn.dataTableExt.oApi.fnSetFilteringDelay = function ( oSettings, iDelay )
sPreviousSearch = null, sPreviousSearch = null,
anControl = $( 'input', _that.fnSettings().aanFeatures.f ); anControl = $( 'input', _that.fnSettings().aanFeatures.f );
anControl.unbind( 'keyup search input' ).bind( 'keyup', function() { anControl.unbind( 'keyup search input' ).bind( 'keyup search input', function() {
var $$this = $this; var $$this = $this;
if (sPreviousSearch === null || sPreviousSearch != anControl.val()) { if (sPreviousSearch === null || sPreviousSearch != anControl.val()) {

Loading…
Cancel
Save