1 // DATA_TEMPLATE: js_data
2 oTest.fnStart( "bPaginate" );
4 $(document).ready( function () {
5 /* Check the default */
6 $('#example').dataTable( {
11 "Pagiantion div exists by default",
13 function () { return document.getElementById('example_paginate') != null; }
17 "Information div takes paging into account",
19 function () { return document.getElementById('example_info').innerHTML ==
20 "Showing 1 to 10 of 57 entries"; }
23 /* Check can disable */
25 "Pagiantion can be disabled",
28 $('#example').dataTable( {
33 function () { return document.getElementById('example_paginate') == null; }
37 "Information div takes paging disabled into account",
39 function () { return document.getElementById('example_info').innerHTML ==
40 "Showing 1 to 57 of 57 entries"; }
43 /* Enable makes no difference */
45 "Pagiantion enabled override",
48 $('#example').dataTable( {
53 function () { return document.getElementById('example_paginate') != null; }