This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// INITIATE DATATABLE | |
$(this).dataTable(); | |
// Change the behaviour of datatables filter (wait until user stops typing) | |
var $filterBox = $(this).parents('.dataTables_wrapper').find('.dataTables_filter input') | |
, handlers = $.extend({}, $._data($filterBox[0], 'events')['keyup']); // Clone the object | |
// Remove all keyup methods, we will run them later | |
$filterBox.off('keyup') |
NewerOlder