datatables.net-colreorder
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -1,2 +0,2 @@ | ||
/*! ColReorder 1.3.1 | ||
/*! ColReorder 1.3.2 | ||
* ©2010-2015 SpryMedia Ltd - datatables.net/license | ||
@@ -8,3 +8,3 @@ */ | ||
* @description Provide the ability to reorder columns in a DataTable | ||
* @version 1.3.1 | ||
* @version 1.3.2 | ||
* @file dataTables.colReorder.js | ||
@@ -128,5 +128,6 @@ * @author SpryMedia Ltd (www.sprymedia.co.uk) | ||
* not a live reorder | ||
* @param bool invalidateRows speeds up processing if false passed | ||
* @returns void | ||
*/ | ||
$.fn.dataTableExt.oApi.fnColReorder = function ( oSettings, iFrom, iTo, drop ) | ||
$.fn.dataTableExt.oApi.fnColReorder = function ( oSettings, iFrom, iTo, drop, invalidateRows ) | ||
{ | ||
@@ -333,5 +334,6 @@ var i, iLen, j, jLen, jen, iCols=oSettings.aoColumns.length, nTrs, oCol; | ||
// Invalidate row cached data for sorting, filtering etc | ||
var api = new $.fn.dataTable.Api( oSettings ); | ||
api.rows().invalidate(); | ||
if ( invalidateRows || invalidateRows === undefined ) | ||
{ | ||
$.fn.dataTable.Api( oSettings ).rows().invalidate(); | ||
} | ||
@@ -364,3 +366,2 @@ /* | ||
/** | ||
@@ -785,3 +786,3 @@ * ColReorder provides column visibility control for DataTables | ||
/* Do the column reorder in the table */ | ||
this.s.dt.oInstance.fnColReorder( currIndex, i, true ); | ||
this.s.dt.oInstance.fnColReorder( currIndex, i, true, false ); | ||
@@ -792,2 +793,4 @@ changed = true; | ||
$.fn.dataTable.Api( this.s.dt ).rows().invalidate(); | ||
this._fnSetColumnIndexes(); | ||
@@ -808,3 +811,3 @@ | ||
this.s.dt.oInstance.oApi._fnSaveState( this.s.dt ); | ||
if ( this.s.reorderCallback !== null ) | ||
@@ -1068,3 +1071,3 @@ { | ||
var iToPoint = 0; | ||
var total = $(aoColumns[0].nTh).offset().left; // Offset of the first column | ||
var total = this.s.aoTargets[0].x; | ||
@@ -1250,3 +1253,3 @@ for ( var i=0, iLen=aoColumns.length ; i<iLen ; i++ ) | ||
*/ | ||
ColReorder.version = "1.3.1"; | ||
ColReorder.version = "1.3.2"; | ||
@@ -1253,0 +1256,0 @@ |
{ | ||
"name": "datatables.net-colreorder", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "ColReorder for DataTables ", | ||
@@ -26,3 +26,7 @@ "files": [ | ||
"datatables.net": ">=1.10.9" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DataTables/Dist-DataTables-ColReorder.git" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
38277
1131
0