From 713008b997bf78425ae51a18b4cd4b1a319dfc4b Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 14 Sep 2010 19:49:19 +0100 Subject: [PATCH] Fixed: jsLint makes the fair point that escape() and unescape() are not standard functions. switched to using en/decodeURIComponent. --- media/js/jquery.dataTables.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 4b9b860c..16ca84d8 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -5740,7 +5740,7 @@ sValue += '"iStart":'+ oSettings._iDisplayStart+','; sValue += '"iEnd":'+ oSettings._iDisplayEnd+','; sValue += '"iLength":'+ oSettings._iDisplayLength+','; - sValue += '"sFilter":"'+ escape(oSettings.oPreviousSearch.sSearch)+'",'; + sValue += '"sFilter":"'+ encodeURIComponent(oSettings.oPreviousSearch.sSearch)+'",'; sValue += '"sFilterEsc":'+ !oSettings.oPreviousSearch.bRegex+','; sValue += '"aaSorting":['; @@ -5754,7 +5754,7 @@ sValue += '"aaSearchCols":['; for ( i=0 ; i