diff options
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index 3a19e6dc86..ab8259231c 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -711,7 +711,7 @@ $.extend(DataTable.prototype, UIControl.prototype, { if (self.param.keep_summary_row == 1) --totalRows; - if (offsetEnd > totalRows) offsetEndDisp = totalRows; + if (offsetEnd > totalRows || Number(self.param.filter_limit) == -1) offsetEndDisp = totalRows; // only show this string if there is some rows in the datatable if (totalRows != 0) { @@ -731,7 +731,7 @@ $.extend(DataTable.prototype, UIControl.prototype, { + Number(self.param.filter_limit); var totalRows = Number(self.param.totalRows); if (self.param.keep_summary_row == 1) --totalRows; - if (offsetEnd < totalRows) { + if (offsetEnd < totalRows && Number(self.param.filter_limit) != -1) { $(this).css('display', 'inline'); } }); |