diff --git a/js/dataTables.tableTools.js b/js/dataTables.tableTools.js index 89a0b52..05af8e2 100755 --- a/js/dataTables.tableTools.js +++ b/js/dataTables.tableTools.js @@ -1634,6 +1634,20 @@ TableTools.prototype = { if ( data[i].nTr ) { $(data[i].nTr).addClass( that.classes.select.row ); + + // Update Fixed Columns plugin + if ( typeof that.s.dt._oFixedColumns !== 'undefined' ) + { + if ( that.s.dt._oFixedColumns.dom.clone.left.body ) + { + $(that.s.dt._oFixedColumns.dom.clone.left.body.rows[data[i].nTr.rowIndex]).addClass( that.classes.select.row ); + } + + if ( that.s.dt._oFixedColumns.dom.clone.right.body ) + { + $(that.s.dt._oFixedColumns.dom.clone.right.body.rows[data[i].nTr.rowIndex]).addClass( that.classes.select.row ); + } + } } } @@ -1683,6 +1697,17 @@ TableTools.prototype = { if ( data[i].nTr ) { $(data[i].nTr).removeClass( that.classes.select.row ); + + // Update Fixed Columns plugin + if ( typeof that.s.dt._oFixedColumns !== 'undefined' ) { + if ( that.s.dt._oFixedColumns.dom.clone.left.body ) { + $(that.s.dt._oFixedColumns.dom.clone.left.body.rows[data[i].nTr.rowIndex]).removeClass( that.classes.select.row ); + } + + if ( that.s.dt._oFixedColumns.dom.clone.right.body ) { + $(that.s.dt._oFixedColumns.dom.clone.right.body.rows[data[i].nTr.rowIndex]).removeClass( that.classes.select.row ); + } + } } }