From 19dbd3c9e7d6227764bcb8b8dc73386fe0f6d241 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Wed, 14 Jan 2015 01:03:02 -0800 Subject: [PATCH] fix one row trimmed off if iDisplayLength==-1 --- planetstack/core/xoslib/static/js/xoslib/xosHelper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js index b479e87..f7872cc 100644 --- a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js +++ b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js @@ -1007,7 +1007,9 @@ XOSDataTableView = Marionette.View.extend( { aaData.sort(function(a,b) { return compareColumns(sortCols, sortDirs, a, b); }); // slice it for pagination - aaData = aaData.slice(iDisplayStart, iDisplayStart+iDisplayLength); + if (iDisplayLength >= 0) { + aaData = aaData.slice(iDisplayStart, iDisplayStart+iDisplayLength); + } return fnCallback({iTotalRecords: totalSize, iTotalDisplayRecords: filteredSize, -- 2.43.0