Bugfix: displayed number of copied row is incorrect when disable bHeader
Bugfix: displayed number of copied row is incorrect when disable bHeader
drmovi
Posts: 7Questions: 0Answers: 0
Hi every body
i noticed that when you assign false to bHeader (inorder not to display header when copying data ) , the displayed number of row is incorrect , this is how to fix
find this row in TableTools.js:
len = this.s.dt.nTFoot === null ? lines-1 : lines-2,
replace it with
len = oConfig.bHeader=== true ?( this.s.dt.nTFoot === null ? lines-1 : lines-2) :(this.s.dt.nTFoot === null ? lines+1 : lines-1),
that's all
thanks
i noticed that when you assign false to bHeader (inorder not to display header when copying data ) , the displayed number of row is incorrect , this is how to fix
find this row in TableTools.js:
len = this.s.dt.nTFoot === null ? lines-1 : lines-2,
replace it with
len = oConfig.bHeader=== true ?( this.s.dt.nTFoot === null ? lines-1 : lines-2) :(this.s.dt.nTFoot === null ? lines+1 : lines-1),
that's all
thanks
This discussion has been closed.