From fedec2b479f1920f9420b2e0554e9ac0dce175f6 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 24 Mar 2014 15:16:16 +0000 Subject: [PATCH] Fix: Inverted logic for column.index() - 20021 --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 765d01ca..7a114d0b 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -4615e4e248f4c3ac97821bb1c27c6c1c9962a1f9 +824641df1d8396a88c495ed258915287046c1c55 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 7e999f8a..407463a5 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -8024,10 +8024,10 @@ var ctx = this.context[0]; if ( type === 'fromVisible' || type === 'toData' ) { - return _fnColumnIndexToVisible( ctx, idx ); + return _fnVisibleToColumnIndex( ctx, idx ); } else if ( type === 'fromData' || type === 'toVisible' ) { - return _fnVisibleToColumnIndex( ctx, idx ); + return _fnColumnIndexToVisible( ctx, idx ); } } } );