fix one row trimmed off if iDisplayLength==-1
Scott Baker [Wed, 14 Jan 2015 09:03:02 +0000 (01:03 -0800)]
planetstack/core/xoslib/static/js/xoslib/xosHelper.js

index b479e87..f7872cc 100644 (file)
@@ -1007,7 +1007,9 @@ XOSDataTableView = Marionette.View.extend( {
                   aaData.sort(function(a,b) { return compareColumns(sortCols, sortDirs, a, b); });\r
 \r
                   // slice it for pagination\r
-                  aaData = aaData.slice(iDisplayStart, iDisplayStart+iDisplayLength);\r
+                  if (iDisplayLength >= 0) {\r
+                      aaData = aaData.slice(iDisplayStart, iDisplayStart+iDisplayLength);\r
+                  }\r
 \r
                   return fnCallback({iTotalRecords: totalSize,\r
                          iTotalDisplayRecords: filteredSize,\r