jquery.dgtable 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jquery.dgtable 0.6.3
2
+ * jquery.dgtable 0.6.5
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
5
  (function (global, factory) {
@@ -7781,7 +7781,7 @@
7781
7781
  };
7782
7782
  };
7783
7783
 
7784
- DGTable.prototype._setupVirtualTable = function () {var _this = this;
7784
+ DGTable.prototype._setupVirtualTable = function () {var _this = this,_p$filteredRows;
7785
7785
  var that = this,p = that.p,o = that.o;
7786
7786
 
7787
7787
  var tableClassName = o.tableClassName,
@@ -7815,7 +7815,7 @@
7815
7815
  onItemRender: function onItemRender(row, index) {
7816
7816
  var rows = p.filteredRows || p.rows,
7817
7817
  isDataFiltered = !!p.filteredRows,
7818
- allowCellPreview = p.allowCellPreview;
7818
+ allowCellPreview = o.allowCellPreview;
7819
7819
 
7820
7820
  row.className = rowClassName;
7821
7821
  if (index % 2 === 1)
@@ -7863,7 +7863,7 @@
7863
7863
  }
7864
7864
  });
7865
7865
 
7866
- p.virtualListHelper.setCount(p.rows.length);
7866
+ p.virtualListHelper.setCount(((_p$filteredRows = p.filteredRows) !== null && _p$filteredRows !== void 0 ? _p$filteredRows : p.rows).length);
7867
7867
 
7868
7868
  p.notifyRendererOfColumnsConfig();
7869
7869
  };
@@ -8152,7 +8152,7 @@
8152
8152
  return this;
8153
8153
  }
8154
8154
 
8155
- if (p.tableSkeletonNeedsRendering === true) {
8155
+ if (p.tableSkeletonNeedsRendering === true) {var _p$filteredRows2;
8156
8156
  p.tableSkeletonNeedsRendering = false;
8157
8157
 
8158
8158
  if (o.width === DGTable.Width.AUTO) {
@@ -8168,7 +8168,7 @@
8168
8168
  tableWidthChanged(true, false) // Take this chance to calculate required column widths
8169
8169
  ._renderSkeletonHeaderCells();
8170
8170
 
8171
- p.virtualListHelper.invalidate();
8171
+ p.virtualListHelper.setCount(((_p$filteredRows2 = p.filteredRows) !== null && _p$filteredRows2 !== void 0 ? _p$filteredRows2 : p.rows).length);
8172
8172
 
8173
8173
  this._updateLastCellWidthFromScrollbar(true);
8174
8174