Sha256: 6794418254c5ac4a3c171679f490c556a8a9511dc615d778f892f2ec5f7b3f6b

Contents?: true

Size: 1.14 KB

Versions: 28

Compression:

Stored size: 1.14 KB

Contents

// DATA_TEMPLATE: empty_table
oTest.fnStart( "Destroy with hidden columns" );

$(document).ready( function () {
	var mTest;
	
	
	$('#example').dataTable( {
		"bServerSide": true,
		"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
		"aoColumnDefs": [ 
			{ "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
			{ "bVisible": false, "aTargets": [ 3 ] }
		],
		"fnInitComplete": function () {
			this.fnDestroy();
		}
	} );
	
	oTest.fnWaitTest( 
		"Check that the number of columns in table is correct",
		null,
		function () { return $('#example tbody tr:eq(0) td').length == 5; }
	);
	
	
	oTest.fnTest( 
		"And with scrolling",
		function () {
			$('#example').dataTable( {
				"bServerSide": true,
				"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php",
				"sScrollY": 200,
				"aoColumnDefs": [ 
					{ "bSearchable": false, "bVisible": false, "aTargets": [ 2 ] },
					{ "bVisible": false, "aTargets": [ 3 ] }
				],
				"fnInitComplete": function () {
					this.fnDestroy();
				}
			} );
		},
		function () { return $('#example tbody tr:eq(0) td').length == 5; }
	);
	
	oTest.fnComplete();
} );

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
classiccms-0.7.5 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.7.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.7.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.7.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.7.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.7.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.9 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.8 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.7 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.6 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.5 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.6.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.5.17 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.5.16 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.5.15 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js
classiccms-0.5.14 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2569.js