mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
Tests: With the change for the state saving into localStorage we need to update the state destroy in the unit tests
This commit is contained in:
parent
94f06473c6
commit
46d483d055
@ -111,11 +111,9 @@ var oTest = {
|
|||||||
*/
|
*/
|
||||||
"fnCookieDestroy": function ( oTable )
|
"fnCookieDestroy": function ( oTable )
|
||||||
{
|
{
|
||||||
var sName = oTable.fnSettings().sCookiePrefix+oTable.fnSettings().sInstance;
|
var s = oTable.fnSettings();
|
||||||
var aParts = window.location.pathname.split('/');
|
|
||||||
var sNameFile = sName + '_' + aParts.pop().replace(/[\/:]/g,"").toLowerCase();
|
localStorage.setItem( 'DataTables_'+s.sInstance+'_'+window.location.pathname, null );
|
||||||
document.cookie = sNameFile+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+
|
|
||||||
aParts.join('/') + "/";
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user