1
0
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:
Allan Jardine 2010-10-17 07:50:51 +01:00
parent 4e11bf9e9c
commit fe6b045af7

View File

@ -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;
}