mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
Fixed: Unit test 4_serveri-side "Filter 'nothinghere' - info" was failing as the information element of the table was incorrectly reporting that "1" record was being shown (start) when the filter applies ensured that no records were actually being shown. This was due to a strong type check against a string/number returned from the server-side processing script and a number/0. Fix is to parseInt().
This commit is contained in:
parent
4e11bf9e9c
commit
fe6b045af7
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -856,7 +856,7 @@
|
||||
this.fnRecordsTotal = function ()
|
||||
{
|
||||
if ( this.oFeatures.bServerSide ) {
|
||||
return this._iRecordsTotal;
|
||||
return parseInt(this._iRecordsTotal, 10);
|
||||
} else {
|
||||
return this.aiDisplayMaster.length;
|
||||
}
|
||||
@ -865,7 +865,7 @@
|
||||
this.fnRecordsDisplay = function ()
|
||||
{
|
||||
if ( this.oFeatures.bServerSide ) {
|
||||
return this._iRecordsDisplay;
|
||||
return parseInt(this._iRecordsDisplay, 10);
|
||||
} else {
|
||||
return this.aiDisplay.length;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user