Skip to content
Permalink
Browse files

Fix: Don't invalidate row data if no changes were made on column reor…

…dering

- Fixes #73
  • Loading branch information
Allan Jardine
Allan Jardine committed Feb 6, 2018
1 parent d5e1b10 commit 5aafb11e4c0220966e5e8a571d3d09d509ed2e5c
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/dataTables.colReorder.js
@@ -785,15 +785,15 @@ $.extend( ColReorder.prototype, {
}
}

$.fn.dataTable.Api( this.s.dt ).rows().invalidate();

this._fnSetColumnIndexes();

// Has anything actually changed? If not, then nothing else to do
if ( ! changed ) {
return;
}

$.fn.dataTable.Api( this.s.dt ).rows().invalidate();

this._fnSetColumnIndexes();

/* When scrolling we need to recalculate the column sizes to allow for the shift */
if ( this.s.dt.oScroll.sX !== "" || this.s.dt.oScroll.sY !== "" )
{

0 comments on commit 5aafb11

Please sign in to comment.
You can’t perform that action at this time.