wrong end number in table info
wrong end number in table info
101mcs
Posts: 1Questions: 0Answers: 0
Table info is being displayed as
[code]Showing 1 to 0100 of 325 entries[/code]
instead of
[code]Showing 1 to 100 of 325 entries[/code]
Turns out the problem is in line 2844 of jquery.dataTables.js:
[code]oSettings._iDisplayEnd = oSettings._iDisplayStart + oSettings._iDisplayLength;[/code]
where _iDisplayLength (despite the variable name) is of type string and therefore _iDisplayStart and _iDisplayLength are being concatenated instead of summed.
[code]Showing 1 to 0100 of 325 entries[/code]
instead of
[code]Showing 1 to 100 of 325 entries[/code]
Turns out the problem is in line 2844 of jquery.dataTables.js:
[code]oSettings._iDisplayEnd = oSettings._iDisplayStart + oSettings._iDisplayLength;[/code]
where _iDisplayLength (despite the variable name) is of type string and therefore _iDisplayStart and _iDisplayLength are being concatenated instead of summed.
This discussion has been closed.
Replies
Allan