mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Update media/src/core/core.info.js
Simplify check for filtering / empty record set
This commit is contained in:
parent
59dc2aed9c
commit
af5c3d8178
@ -1,5 +1,4 @@
|
||||
|
||||
|
||||
/**
|
||||
* Generate the node required for the info display
|
||||
* @param {object} oSettings dataTables settings object
|
||||
@ -50,25 +49,20 @@ function _fnUpdateInfo ( oSettings )
|
||||
iTotal = oSettings.fnRecordsDisplay(),
|
||||
sOut;
|
||||
|
||||
if ( iTotal === 0 && iTotal == iMax )
|
||||
if ( iTotal === 0 )
|
||||
{
|
||||
/* Empty record set */
|
||||
sOut = oLang.sInfoEmpty;
|
||||
}
|
||||
else if ( iTotal === 0 )
|
||||
{
|
||||
/* Empty record set after filtering */
|
||||
sOut = oLang.sInfoEmpty +' '+ oLang.sInfoFiltered;
|
||||
}
|
||||
else if ( iTotal == iMax )
|
||||
{
|
||||
else {
|
||||
/* Normal record set */
|
||||
sOut = oLang.sInfo;
|
||||
}
|
||||
else
|
||||
|
||||
if ( iTotal != iMax )
|
||||
{
|
||||
/* Record set after filtering */
|
||||
sOut = oLang.sInfo +' '+ oLang.sInfoFiltered;
|
||||
sOut += ' ' + oLang.sInfoFiltered;
|
||||
}
|
||||
|
||||
// Convert the macros
|
||||
|
Loading…
x
Reference in New Issue
Block a user