mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Fix: Sorting disabled class wasn't being added to the header cells when
sorting is completely disabled
This commit is contained in:
parent
06b1195376
commit
4550cc88bf
@ -1 +1 @@
|
||||
9b187f5327f95ae6eaa21ac9d2f2f2a9e3c91b21
|
||||
a1f0ee20f181b06bdb5a151830e46cd695d73f52
|
||||
|
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user