From dcbea43baf1a9adceeffd919d3107c726c9b6149 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 25 Feb 2014 09:23:08 +0000 Subject: [PATCH] New: column().visible() and columns().visible() now act as getters or setters. - See discussion thread 19653 --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index c797dda4..a211e66b 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -964addd063b9c201c9206e4fd21aed712c2dd42e +9e8608fd117a2f841b3db76e36bebe06e635667f diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 9555e17b..f8daa2c0 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -7929,7 +7929,9 @@ _api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis ) { return this.iterator( 'column', function ( settings, column ) { - return __setColumnVis( settings, column, vis ); + return vis === undefined ? + settings.aoColumns[ column ].bVisible : + __setColumnVis( settings, column, vis ); } ); } );