Skip to content

Commit

Permalink
Fix: Add class names to column header cells before extensions are ini…
Browse files Browse the repository at this point in the history
…tialised. This allows extensions such as Buttons' column visibility selector to operate on class names given in the column options.

- Thread 34321
- FB 286
  • Loading branch information
Allan Jardine committed Jun 16, 2017
1 parent 2e6bbba commit 1d6baac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/DataTables.js
@@ -1,11 +1,11 @@
/*! DataTables 1.10.15
/*! DataTables 1.10.16-dev
* ©2008-2017 SpryMedia Ltd - datatables.net/license
*/

/**
* @summary DataTables
* @description Paginate, search and order HTML tables
* @version 1.10.15
* @version 1.10.16-dev
* @file jquery.dataTables.js
* @author SpryMedia Ltd
* @contact www.datatables.net
Expand Down Expand Up @@ -169,7 +169,7 @@
* @type string
* @default Version number
*/
DataTable.version = "1.10.15";
DataTable.version = "1.10.16-dev";

/**
* Private data store, containing all of the settings objects that are
Expand Down
3 changes: 3 additions & 0 deletions js/core/core.columns.js
Expand Up @@ -81,6 +81,9 @@ function _fnColumnOptions( oSettings, iCol, oOptions )
{
oOptions.sClass = oOptions.className;
}
if ( oOptions.sClass ) {
th.addClass( oOptions.sClass );
}

$.extend( oCol, oOptions );
_fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
Expand Down

0 comments on commit 1d6baac

Please sign in to comment.