diff --git a/.datatables-commit-sync b/.datatables-commit-sync index f7b7d977..7437effb 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -9f491c3ae078c42f582c3a7594ee9ca77bf27f28 +3b83c09e3756166db61b32453ddd02ce72bd42bb diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index cbfe92bc..a4e3dab1 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -2677,10 +2677,17 @@ * with client-side processing (optional) * @memberof DataTable#oApi */ - function _fnInitComplete ( oSettings, json ) + function _fnInitComplete ( settings, json ) { - oSettings._bInitComplete = true; - _fnCallbackFire( oSettings, 'aoInitComplete', 'init', [oSettings, json] ); + settings._bInitComplete = true; + + // On an Ajax load we now have data and therefore want to apply the column + // sizing + if ( json ) { + _fnAdjustColumnSizing( settings ); + } + + _fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] ); }