jquery.dgtable 0.5.54 → 0.5.55
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.
- package/dist/jquery.dgtable.cjs.js +5 -5
- package/dist/jquery.dgtable.cjs.js.map +1 -1
- package/dist/jquery.dgtable.cjs.min.js +2 -2
- package/dist/jquery.dgtable.cjs.min.js.map +1 -1
- package/dist/jquery.dgtable.es6.js +5 -5
- package/dist/jquery.dgtable.es6.js.map +1 -1
- package/dist/jquery.dgtable.es6.min.js +2 -2
- package/dist/jquery.dgtable.es6.min.js.map +1 -1
- package/dist/jquery.dgtable.umd.js +5 -5
- package/dist/jquery.dgtable.umd.js.map +1 -1
- package/dist/jquery.dgtable.umd.min.js +2 -2
- package/dist/jquery.dgtable.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jquery.dgtable 0.5.
|
|
2
|
+
* jquery.dgtable 0.5.55
|
|
3
3
|
* git://github.com/danielgindi/jquery.dgtable.git
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -2488,8 +2488,7 @@ DGTable.prototype.renderRows = function (first, last) {
|
|
|
2488
2488
|
isVirtual = o.virtualTable,
|
|
2489
2489
|
virtualRowHeightFirst = p.virtualRowHeightFirst,
|
|
2490
2490
|
virtualRowHeight = p.virtualRowHeight,
|
|
2491
|
-
top
|
|
2492
|
-
physicalRowIndex;
|
|
2491
|
+
top;
|
|
2493
2492
|
|
|
2494
2493
|
let colCount = visibleColumns.length;
|
|
2495
2494
|
for (let colIndex = 0, column; colIndex < colCount; colIndex++) {
|
|
@@ -2509,7 +2508,7 @@ DGTable.prototype.renderRows = function (first, last) {
|
|
|
2509
2508
|
i++) {
|
|
2510
2509
|
|
|
2511
2510
|
let rowData = rows[i];
|
|
2512
|
-
physicalRowIndex = isDataFiltered ? rowData['__i'] : i;
|
|
2511
|
+
let physicalRowIndex = isDataFiltered ? rowData['__i'] : i;
|
|
2513
2512
|
|
|
2514
2513
|
let row = createElement('div');
|
|
2515
2514
|
row.className = rowClassName;
|
|
@@ -2554,8 +2553,9 @@ DGTable.prototype.renderRows = function (first, last) {
|
|
|
2554
2553
|
|
|
2555
2554
|
this.trigger('rowcreate', i, physicalRowIndex, row, rowData);
|
|
2556
2555
|
|
|
2556
|
+
let rowIndex = i;
|
|
2557
2557
|
row.addEventListener('click', (event) => {
|
|
2558
|
-
this.trigger('rowclick', event,
|
|
2558
|
+
this.trigger('rowclick', event, rowIndex, physicalRowIndex, row, rowData);
|
|
2559
2559
|
});
|
|
2560
2560
|
}
|
|
2561
2561
|
|