Skip to content

Commit

Permalink
Merge pull request DataTables#97 from timtucker/patch-13
Browse files Browse the repository at this point in the history
Update media/src/core/core.info.js
  • Loading branch information
Allan Jardine committed Sep 4, 2012
2 parents 6d11218 + af5c3d8 commit 30f936d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions media/src/core/core.info.js
Expand Up @@ -49,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
Expand Down

0 comments on commit 30f936d

Please sign in to comment.