Sha256: 0242f558b13b46a29d80840c021cc1e940723e815082f54bcbd1a80bcaefa228
Contents?: true
Size: 991 Bytes
Versions: 17
Compression:
Stored size: 991 Bytes
Contents
jQuery.fn.dataTableExt.oApi.fnSetFilteringDelay = function ( oSettings, iDelay ) { var _that = this; if ( iDelay === undefined ) { iDelay = 250; } this.each( function ( i ) { $.fn.dataTableExt.iApiIndex = i; var $this = this, oTimerId = null, sPreviousSearch = null, anControl = $( 'input', _that.fnSettings().aanFeatures.f ); anControl.off( 'keyup search input' ).on( 'keyup search input', function() { var $$this = $this; if (sPreviousSearch === null || sPreviousSearch != anControl.val()) { window.clearTimeout(oTimerId); sPreviousSearch = anControl.val(); oTimerId = window.setTimeout(function() { $.fn.dataTableExt.iApiIndex = i; _that.fnFilter( anControl.val() ); }, iDelay); } }); return this; } ); return this; };
Version data entries
17 entries across 17 versions & 3 rubygems