Fix: Nested tables would cause the parent table to update its sort when a child does its own sorting

pull/107/head
Allan Jardine 10 years ago
parent 2ab48fdbc3
commit 2c3231bb7c

@ -86,7 +86,11 @@ DataTable.ext.renderer.header.jqueryui = function ( settings, cell, column, clas
.appendTo( cell ); .appendTo( cell );
// Attach a sort listener to update on sort // Attach a sort listener to update on sort
$(settings.nTable).on( 'order.dt', function ( e, settings, sorting, columns ) { $(settings.nTable).on( 'order.dt', function ( e, ctx, sorting, columns ) {
if ( settings !== ctx ) {
return;
}
var colIdx = column.idx; var colIdx = column.idx;
cell cell

Loading…
Cancel
Save