Socket
Socket
Sign inDemoInstall

datatables.net-colreorder

Package Overview
Dependencies
2
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.3.2

25

js/dataTables.colReorder.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc