public/dashboard/bower_components/admin-lte/plugins/datatables/extensions/Scroller/js/dataTables.scroller.js
function ()
	{
		var dt = this.s.dt;
		var origTable = dt.nTable;
		var nTable = origTable.cloneNode( false );
		var tbody = $('<tbody/>').appendTo( nTable );
		var container = $(
			'<div class="'+dt.oClasses.sWrapper+' DTS">'+
				'<div class="'+dt.oClasses.sScrollWrapper+'">'+
					'<div class="'+dt.oClasses.sScrollBody+'"></div>'+
				'</div>'+
			'</div>'
		);

		// Want 3 rows in the sizing table so :first-child and :last-child
		// CSS styles don't come into play - take the size of the middle row
		$('tbody tr:lt(4)', origTable).clone().appendTo( tbody );
		while( $('tr', tbody).length < 3 ) {
			tbody.append( '<tr><td>&nbsp;</td></tr>' );
		}

		$('div.'+dt.oClasses.sScrollBody, container).append( nTable );

		var appendTo;
		if (dt._bInitComplete) {
			appendTo = origTable.parentNode;
		} else {
			if (!this.s.dt.nHolding) {
				this.s.dt.nHolding = $( '<div></div>' ).insertBefore( this.s.dt.nTable );
			}
			appendTo = this.s.dt.nHolding;
		}

		container.appendTo( appendTo );
		this.s.heights.row = $('tr', tbody).eq(1).outerHeight();
		container.remove();
	}
function ()
	{
		var dt = this.s.dt;
		var origTable = dt.nTable;
		var nTable = origTable.cloneNode( false );
		var tbody = $('<tbody/>').appendTo( nTable );
		var container = $(
			'<div class="'+dt.oClasses.sWrapper+' DTS">'+
				'<div class="'+dt.oClasses.sScrollWrapper+'">'+
					'<div class="'+dt.oClasses.sScrollBody+'"></div>'+
				'</div>'+
			'</div>'
		);

		// Want 3 rows in the sizing table so :first-child and :last-child
		// CSS styles don't come into play - take the size of the middle row
		$('tbody tr:lt(4)', origTable).clone().appendTo( tbody );
		while( $('tr', tbody).length < 3 ) {
			tbody.append( '<tr><td>&nbsp;</td></tr>' );
		}

		$('div.'+dt.oClasses.sScrollBody, container).append( nTable );

		var appendTo;
		if (dt._bInitComplete) {
			appendTo = origTable.parentNode;
		} else {
			if (!this.s.dt.nHolding) {
				this.s.dt.nHolding = $( '<div></div>' ).insertBefore( this.s.dt.nTable );
			}
			appendTo = this.s.dt.nHolding;
		}

		container.appendTo( appendTo );
		this.s.heights.row = $('tr', tbody).eq(1).outerHeight();
		container.remove();
	}
function ( ) { var dt = this . s . dt ; var origTable = dt . nTable ; var nTable = origTable . cloneNode ( false ) ; var tbody = $ ( '<tbody/>' ) . appendTo ( nTable ) ; var container = $ ( '<div class="' + dt . oClasses . sWrapper + ' DTS">' + '<div class="' + dt . oClasses . sScrollWrapper + '">' + '<div class="' + dt . oClasses . sScrollBody + '"></div>' + '</div>' + '</div>' ) ; // Want 3 rows in the sizing table so :first-child and :last-child // CSS styles don't come into play - take the size of the middle row $ ( 'tbody tr:lt(4)' , origTable ) . clone ( ) . appendTo ( tbody ) ; while ( $ ( 'tr' , tbody ) . length < 3 ) { tbody . append ( '<tr><td>&nbsp;</td></tr>' ) ; } $ ( 'div.' + dt . oClasses . sScrollBody , container ) . append ( nTable ) ; var appendTo ; if ( dt . _bInitComplete ) { appendTo = origTable . parentNode ; } else { if ( ! this . s . dt . nHolding ) { this . s . dt . nHolding = $ ( '<div></div>' ) . insertBefore ( this . s . dt . nTable ) ; } appendTo = this . s . dt . nHolding ; } container . appendTo ( appendTo ) ; this . s . heights . row = $ ( 'tr' , tbody ) . eq ( 1 ) . outerHeight ( ) ; container . remove ( ) ; }
Automatic calculation of table row height. This is just a little tricky here as using
initialisation DataTables has tale the table out of the document, so we need to create
a new table and insert it into the document, calculate the row height and then whip the
table out.
@returns {void}
@private
Automatic calculation of table row height . This is just a little tricky here as using initialisation DataTables has tale the table out of the document so we need to create a new table and insert it into the document calculate the row height and then whip the table out .