public/dashboard/bower_components/admin-lte/plugins/datatables/extensions/ColReorder/js/dataTables.colReorder.js
function ()
	{
		var scrolling = this.s.dt.oScroll.sX !== "" || this.s.dt.oScroll.sY !== "";

		var origCell = this.s.dt.aoColumns[ this.s.mouse.targetIndex ].nTh;
		var origTr = origCell.parentNode;
		var origThead = origTr.parentNode;
		var origTable = origThead.parentNode;
		var cloneCell = $(origCell).clone();

		// This is a slightly odd combination of jQuery and DOM, but it is the
		// fastest and least resource intensive way I could think of cloning
		// the table with just a single header cell in it.
		this.dom.drag = $(origTable.cloneNode(false))
			.addClass( 'DTCR_clonedTable' )
			.append(
				$(origThead.cloneNode(false)).append(
					$(origTr.cloneNode(false)).append(
						cloneCell[0]
					)
				)
			)
			.css( {
				position: 'absolute',
				top: 0,
				left: 0,
				width: $(origCell).outerWidth(),
				height: $(origCell).outerHeight()
			} )
			.appendTo( 'body' );

		this.dom.pointer = $('<div></div>')
			.addClass( 'DTCR_pointer' )
			.css( {
				position: 'absolute',
				top: scrolling ?
					$('div.dataTables_scroll', this.s.dt.nTableWrapper).offset().top :
					$(this.s.dt.nTable).offset().top,
				height : scrolling ?
					$('div.dataTables_scroll', this.s.dt.nTableWrapper).height() :
					$(this.s.dt.nTable).height()
			} )
			.appendTo( 'body' );
	}
function ()
	{
		var scrolling = this.s.dt.oScroll.sX !== "" || this.s.dt.oScroll.sY !== "";

		var origCell = this.s.dt.aoColumns[ this.s.mouse.targetIndex ].nTh;
		var origTr = origCell.parentNode;
		var origThead = origTr.parentNode;
		var origTable = origThead.parentNode;
		var cloneCell = $(origCell).clone();

		// This is a slightly odd combination of jQuery and DOM, but it is the
		// fastest and least resource intensive way I could think of cloning
		// the table with just a single header cell in it.
		this.dom.drag = $(origTable.cloneNode(false))
			.addClass( 'DTCR_clonedTable' )
			.append(
				$(origThead.cloneNode(false)).append(
					$(origTr.cloneNode(false)).append(
						cloneCell[0]
					)
				)
			)
			.css( {
				position: 'absolute',
				top: 0,
				left: 0,
				width: $(origCell).outerWidth(),
				height: $(origCell).outerHeight()
			} )
			.appendTo( 'body' );

		this.dom.pointer = $('<div></div>')
			.addClass( 'DTCR_pointer' )
			.css( {
				position: 'absolute',
				top: scrolling ?
					$('div.dataTables_scroll', this.s.dt.nTableWrapper).offset().top :
					$(this.s.dt.nTable).offset().top,
				height : scrolling ?
					$('div.dataTables_scroll', this.s.dt.nTableWrapper).height() :
					$(this.s.dt.nTable).height()
			} )
			.appendTo( 'body' );
	}
function ( ) { var scrolling = this . s . dt . oScroll . sX !== "" || this . s . dt . oScroll . sY !== "" ; var origCell = this . s . dt . aoColumns [ this . s . mouse . targetIndex ] . nTh ; var origTr = origCell . parentNode ; var origThead = origTr . parentNode ; var origTable = origThead . parentNode ; var cloneCell = $ ( origCell ) . clone ( ) ; // This is a slightly odd combination of jQuery and DOM, but it is the // fastest and least resource intensive way I could think of cloning // the table with just a single header cell in it. this . dom . drag = $ ( origTable . cloneNode ( false ) ) . addClass ( 'DTCR_clonedTable' ) . append ( $ ( origThead . cloneNode ( false ) ) . append ( $ ( origTr . cloneNode ( false ) ) . append ( cloneCell [ 0 ] ) ) ) . css ( { position : 'absolute' , top : 0 , left : 0 , width : $ ( origCell ) . outerWidth ( ) , height : $ ( origCell ) . outerHeight ( ) } ) . appendTo ( 'body' ) ; this . dom . pointer = $ ( '<div></div>' ) . addClass ( 'DTCR_pointer' ) . css ( { position : 'absolute' , top : scrolling ? $ ( 'div.dataTables_scroll' , this . s . dt . nTableWrapper ) . offset ( ) . top : $ ( this . s . dt . nTable ) . offset ( ) . top , height : scrolling ? $ ( 'div.dataTables_scroll' , this . s . dt . nTableWrapper ) . height ( ) : $ ( this . s . dt . nTable ) . height ( ) } ) . appendTo ( 'body' ) ; }
Copy the TH element that is being drags so the user has the idea that they are actually
moving it around the page.
@method  _fnCreateDragNode
@returns void
@private
Copy the TH element that is being drags so the user has the idea that they are actually moving it around the page .