Sha256: c12a70ef415966c8250e7519eea567bbb93468d1c9bb0988fd03a9cae6a5c734
Contents?: true
Size: 903 Bytes
Versions: 28
Compression:
Stored size: 903 Bytes
Contents
// DATA_TEMPLATE: dom_data oTest.fnStart( "2914 - State saving with an empty array" ); $(document).ready( function () { document.cookie = ""; $('#example').dataTable( { "bStateSave": true, "aaSorting": [] } ); oTest.fnTest( "No sort", null, function () { return $('#example tbody td:eq(3)').html() == "4"; } ); oTest.fnTest( "Next page", function () { $('#example').dataTable().fnPageChange( 'next' ); }, function () { return $('#example tbody td:eq(1)').html() == "Camino 1.0"; } ); oTest.fnTest( "Destroy the table and remake it - checking we are still on the next page", function () { $('#example').dataTable( { "bStateSave": true, "aaSorting": [], "bDestroy": true } ); }, function () { return $('#example tbody td:eq(1)').html() == "Camino 1.0"; } ); oTest.fnCookieDestroy( $('#example').dataTable() ); oTest.fnComplete(); } );
Version data entries
28 entries across 28 versions & 1 rubygems