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.0 to 1.3.1

37

js/dataTables.colReorder.js

@@ -1,2 +0,2 @@

/*! ColReorder 1.3.0
/*! ColReorder 1.3.1
* ©2010-2015 SpryMedia Ltd - datatables.net/license

@@ -8,3 +8,3 @@ */

* @description Provide the ability to reorder columns in a DataTable
* @version 1.3.0
* @version 1.3.1
* @file dataTables.colReorder.js

@@ -132,3 +132,3 @@ * @author SpryMedia Ltd (www.sprymedia.co.uk)

{
var i, iLen, j, jLen, iCols=oSettings.aoColumns.length, nTrs, oCol;
var i, iLen, j, jLen, jen, iCols=oSettings.aoColumns.length, nTrs, oCol;
var attrMap = function ( obj, prop, mapping ) {

@@ -223,5 +223,2 @@ if ( ! obj[ prop ] || typeof obj[ prop ] === 'function' ) {

oCol.mData = aiInvertMapping[ oCol.mData ];
// regenerate the get / set functions
oSettings.oApi._fnColumnOptions( oSettings, i, {} );
}

@@ -234,9 +231,5 @@ else if ( $.isPlainObject( oCol.mData ) ) {

attrMap( oCol.mData, 'type', aiInvertMapping );
// regenerate the get / set functions
oSettings.oApi._fnColumnOptions( oSettings, i, {} );
}
}
/*

@@ -294,2 +287,7 @@ * Move the DOM elements

// regenerate the get / set functions
for ( i=0, iLen=iCols ; i<iLen ; i++ ) {
oSettings.oApi._fnColumnOptions( oSettings, i, {} );
}
/* Search columns */

@@ -302,5 +300,14 @@ fnArraySwitch( oSettings.aoPreSearchCols, iFrom, iTo );

var data = oSettings.aoData[i];
var cells = data.anCells;
if ( data.anCells ) {
fnArraySwitch( data.anCells, iFrom, iTo );
if ( cells ) {
fnArraySwitch( cells, iFrom, iTo );
// Longer term, should this be moved into the DataTables' invalidate
// methods?
for ( j=0, jen=cells.length ; j<jen ; j++ ) {
if ( cells[j] && cells[j]._DT_CellIndex ) {
cells[j]._DT_CellIndex.column = j;
}
}
}

@@ -1073,3 +1080,3 @@

if ( aoColumns[i].bVisible )
if ( aoColumns[i].bVisible && aoColumns[i].nTh.style.display !=='none' )
{

@@ -1242,3 +1249,3 @@ total += $(aoColumns[i].nTh).outerWidth();

*/
ColReorder.version = "1.3.0";
ColReorder.version = "1.3.1";

@@ -1333,2 +1340,2 @@

return ColReorder;
}));
}));
{
"name": "datatables.net-colreorder",
"version": "1.3.0",
"version": "1.3.1",
"description": "ColReorder for DataTables ",

@@ -5,0 +5,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc