Sha256: 1bef0ce85e3d277ae40ac840eeede7d9f8e03bad3d13e1376891a495073ce6f2

Contents?: true

Size: 926 Bytes

Versions: 28

Compression:

Stored size: 926 Bytes

Contents

// DATA_TEMPLATE: empty_table
/*
 * NOTE: There are some differences in this zero config script for server-side
 * processing compared to the other data sources. The main reason for this is the
 * difference in how the server-side processing does it's filtering. Also the
 * sorting state is always reset on each draw.
 */
oTest.fnStart( "Info element with display all" );

$(document).ready( function () {
	var oTable = $('#example').dataTable( {
		"bServerSide": true,
		"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
	} );
	
	oTable.fnSettings()._iDisplayLength = -1;
	oTable.oApi._fnCalculateEnd( oTable.fnSettings() );
	oTable.fnDraw();
	
	
	/* Basic checks */
	oTest.fnWaitTest( 
		"Check length is correct when -1 length given",
		null,
		function () {
			return document.getElementById('example_info').innerHTML == 
				"Showing 1 to 57 of 57 entries";
		}
	);
	
	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/2440.js
classiccms-0.7.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.7.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.7.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.7.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.7.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.9 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.8 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.7 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.6 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.5 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.4 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.3 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.2 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.1 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.6.0 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.5.17 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.5.16 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.5.15 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js
classiccms-0.5.14 lib/classiccms/public/admin/datatables/unit_testing/tests_onhold/4_server-side/2440.js