mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Fixed: jsLint makes the fair point that escape() and unescape() are not standard functions. switched to using en/decodeURIComponent.
This commit is contained in:
parent
23fe13c68b
commit
713008b997
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -5740,7 +5740,7 @@
|
|||||||
sValue += '"iStart":'+ oSettings._iDisplayStart+',';
|
sValue += '"iStart":'+ oSettings._iDisplayStart+',';
|
||||||
sValue += '"iEnd":'+ oSettings._iDisplayEnd+',';
|
sValue += '"iEnd":'+ oSettings._iDisplayEnd+',';
|
||||||
sValue += '"iLength":'+ oSettings._iDisplayLength+',';
|
sValue += '"iLength":'+ oSettings._iDisplayLength+',';
|
||||||
sValue += '"sFilter":"'+ escape(oSettings.oPreviousSearch.sSearch)+'",';
|
sValue += '"sFilter":"'+ encodeURIComponent(oSettings.oPreviousSearch.sSearch)+'",';
|
||||||
sValue += '"sFilterEsc":'+ !oSettings.oPreviousSearch.bRegex+',';
|
sValue += '"sFilterEsc":'+ !oSettings.oPreviousSearch.bRegex+',';
|
||||||
|
|
||||||
sValue += '"aaSorting":[';
|
sValue += '"aaSorting":[';
|
||||||
@ -5754,7 +5754,7 @@
|
|||||||
sValue += '"aaSearchCols":[';
|
sValue += '"aaSearchCols":[';
|
||||||
for ( i=0 ; i<oSettings.aoPreSearchCols.length ; i++ )
|
for ( i=0 ; i<oSettings.aoPreSearchCols.length ; i++ )
|
||||||
{
|
{
|
||||||
sValue += '["'+escape(oSettings.aoPreSearchCols[i].sSearch)+
|
sValue += '["'+encodeURIComponent(oSettings.aoPreSearchCols[i].sSearch)+
|
||||||
'",'+!oSettings.aoPreSearchCols[i].bRegex+'],';
|
'",'+!oSettings.aoPreSearchCols[i].bRegex+'],';
|
||||||
}
|
}
|
||||||
sValue = sValue.substring(0, sValue.length-1);
|
sValue = sValue.substring(0, sValue.length-1);
|
||||||
@ -5809,7 +5809,7 @@
|
|||||||
oSettings.iInitDisplayStart = oData.iStart;
|
oSettings.iInitDisplayStart = oData.iStart;
|
||||||
oSettings._iDisplayEnd = oData.iEnd;
|
oSettings._iDisplayEnd = oData.iEnd;
|
||||||
oSettings._iDisplayLength = oData.iLength;
|
oSettings._iDisplayLength = oData.iLength;
|
||||||
oSettings.oPreviousSearch.sSearch = unescape(oData.sFilter);
|
oSettings.oPreviousSearch.sSearch = decodeURIComponent(oData.sFilter);
|
||||||
oSettings.aaSorting = oData.aaSorting.slice();
|
oSettings.aaSorting = oData.aaSorting.slice();
|
||||||
oSettings.saved_aaSorting = oData.aaSorting.slice();
|
oSettings.saved_aaSorting = oData.aaSorting.slice();
|
||||||
|
|
||||||
@ -5829,7 +5829,7 @@
|
|||||||
for ( var i=0 ; i<oData.aaSearchCols.length ; i++ )
|
for ( var i=0 ; i<oData.aaSearchCols.length ; i++ )
|
||||||
{
|
{
|
||||||
oSettings.aoPreSearchCols[i] = {
|
oSettings.aoPreSearchCols[i] = {
|
||||||
"sSearch": unescape(oData.aaSearchCols[i][0]),
|
"sSearch": decodeURIComponent(oData.aaSearchCols[i][0]),
|
||||||
"bRegex": !oData.aaSearchCols[i][1]
|
"bRegex": !oData.aaSearchCols[i][1]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user