From 47d5a6781a56c3c804804cffcafaed552374f7ca Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 30 Oct 2010 06:35:30 +0100 Subject: [PATCH] Fixed: When pressing a meta key (i.e. an arrow key) in the search box and the search value didn't change, this was casuing a redraw to occur where one was not needed - 2933 --- media/js/jquery.dataTables.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 929818af..bad17692 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -3923,11 +3923,14 @@ } /* Now do the filter */ - _fnFilterComplete( oSettings, { - "sSearch": this.value, - "bRegex": oSettings.oPreviousSearch.bRegex, - "bSmart": oSettings.oPreviousSearch.bSmart - } ); + if ( this.value != oSettings.oPreviousSearch.sSearch ) + { + _fnFilterComplete( oSettings, { + "sSearch": this.value, + "bRegex": oSettings.oPreviousSearch.bRegex, + "bSmart": oSettings.oPreviousSearch.bSmart + } ); + } } ); jqFilter.keypress( function(e) {