public/dashboard/bower_components/admin-lte/plugins/datatables/extensions/ColReorder/js/dataTables.colReorder.js
function ()
	{
		var aoColumns = this.s.dt.aoColumns;

		this.s.aoTargets.splice( 0, this.s.aoTargets.length );

		this.s.aoTargets.push( {
			"x":  $(this.s.dt.nTable).offset().left,
			"to": 0
		} );

		var iToPoint = 0;
		for ( var i=0, iLen=aoColumns.length ; i<iLen ; i++ )
		{
			/* For the column / header in question, we want it's position to remain the same if the
			 * position is just to it's immediate left or right, so we only incremement the counter for
			 * other columns
			 */
			if ( i != this.s.mouse.fromIndex )
			{
				iToPoint++;
			}

			if ( aoColumns[i].bVisible )
			{
				this.s.aoTargets.push( {
					"x":  $(aoColumns[i].nTh).offset().left + $(aoColumns[i].nTh).outerWidth(),
					"to": iToPoint
				} );
			}
		}

		/* Disallow columns for being reordered by drag and drop, counting right to left */
		if ( this.s.fixedRight !== 0 )
		{
			this.s.aoTargets.splice( this.s.aoTargets.length - this.s.fixedRight );
		}

		/* Disallow columns for being reordered by drag and drop, counting left to right */
		if ( this.s.fixed !== 0 )
		{
			this.s.aoTargets.splice( 0, this.s.fixed );
		}
	}
function ()
	{
		var aoColumns = this.s.dt.aoColumns;

		this.s.aoTargets.splice( 0, this.s.aoTargets.length );

		this.s.aoTargets.push( {
			"x":  $(this.s.dt.nTable).offset().left,
			"to": 0
		} );

		var iToPoint = 0;
		for ( var i=0, iLen=aoColumns.length ; i<iLen ; i++ )
		{
			/* For the column / header in question, we want it's position to remain the same if the
			 * position is just to it's immediate left or right, so we only incremement the counter for
			 * other columns
			 */
			if ( i != this.s.mouse.fromIndex )
			{
				iToPoint++;
			}

			if ( aoColumns[i].bVisible )
			{
				this.s.aoTargets.push( {
					"x":  $(aoColumns[i].nTh).offset().left + $(aoColumns[i].nTh).outerWidth(),
					"to": iToPoint
				} );
			}
		}

		/* Disallow columns for being reordered by drag and drop, counting right to left */
		if ( this.s.fixedRight !== 0 )
		{
			this.s.aoTargets.splice( this.s.aoTargets.length - this.s.fixedRight );
		}

		/* Disallow columns for being reordered by drag and drop, counting left to right */
		if ( this.s.fixed !== 0 )
		{
			this.s.aoTargets.splice( 0, this.s.fixed );
		}
	}
function ( ) { var aoColumns = this . s . dt . aoColumns ; this . s . aoTargets . splice ( 0 , this . s . aoTargets . length ) ; this . s . aoTargets . push ( { "x" : $ ( this . s . dt . nTable ) . offset ( ) . left , "to" : 0 } ) ; var iToPoint = 0 ; for ( var i = 0 , iLen = aoColumns . length ; i < iLen ; i ++ ) { /* For the column / header in question, we want it's position to remain the same if the
			 * position is just to it's immediate left or right, so we only incremement the counter for
			 * other columns
			 */ if ( i != this . s . mouse . fromIndex ) { iToPoint ++ ; } if ( aoColumns [ i ] . bVisible ) { this . s . aoTargets . push ( { "x" : $ ( aoColumns [ i ] . nTh ) . offset ( ) . left + $ ( aoColumns [ i ] . nTh ) . outerWidth ( ) , "to" : iToPoint } ) ; } } /* Disallow columns for being reordered by drag and drop, counting right to left */ if ( this . s . fixedRight !== 0 ) { this . s . aoTargets . splice ( this . s . aoTargets . length - this . s . fixedRight ) ; } /* Disallow columns for being reordered by drag and drop, counting left to right */ if ( this . s . fixed !== 0 ) { this . s . aoTargets . splice ( 0 , this . s . fixed ) ; } }
Calculate a cached array with the points of the column inserts, and the
'to' points
@method  _fnRegions
@returns void
@private
Calculate a cached array with the points of the column inserts and the to points