Fix fnSetFilteringDelay when filtering disabled

Adds a check to fnSetFilteringDelay() that the table actually has the search box enabled - previously calling fnSetFilteringDelay() for a table without filtering would hijack ALL the search input box 'keyup' bindings on the whole page.
pull/293/head
Michael Fielding 8 years ago committed by GitHub
parent a7ba2feda5
commit 8932d269b7

@ -29,6 +29,8 @@ jQuery.fn.dataTableExt.oApi.fnSetFilteringDelay = function ( oSettings, iDelay )
}
this.each( function ( i ) {
if ( typeof _that.fnSettings().aanFeatures.f !== 'undefined' )
{
$.fn.dataTableExt.iApiIndex = i;
var
oTimerId = null,
@ -48,6 +50,7 @@ jQuery.fn.dataTableExt.oApi.fnSetFilteringDelay = function ( oSettings, iDelay )
});
return this;
}
} );
return this;
};

Loading…
Cancel
Save