diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 437f04f8..2bd62a0b 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -9b187f5327f95ae6eaa21ac9d2f2f2a9e3c91b21 +a1f0ee20f181b06bdb5a151830e46cd695d73f52 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index c220f7f5..3b0522bc 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -582,12 +582,11 @@ { var oCol = oSettings.aoColumns[ iCol ]; var oClasses = oSettings.oClasses; + var th = $(oCol.nTh); // Try to get width information from the DOM. We can't get it from CSS // as we'd need to parse the CSS stylesheet. `width` option can override if ( ! oCol.sWidthOrig ) { - var th = $(oCol.nTh); - // Width attribute oCol.sWidthOrig = th.attr('width') || null; @@ -665,6 +664,7 @@ if ( !oSettings.oFeatures.bSort ) { oCol.bSortable = false; + th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called } /* Check that the class assignment is correct for sorting */