forked from extern/egroupware
Etemplate: Fix some nm / push bugs
- Handling for sub-grids - Fix some index issues in selectionMgr causing rows to jump around
This commit is contained in:
@ -354,8 +354,12 @@ var et2_dataview_controller = /** @class */ (function () {
|
||||
if (this._disable_autorefresh && this._indexMap[_entry.idx].uid !== _entry.uid) {
|
||||
var max = parseInt(Object.keys(this._indexMap).reduce(function (a, b) { return _this._indexMap[a] > _this._indexMap[b] ? a : b; }));
|
||||
for (var idx = max; idx >= _entry.idx; idx--) {
|
||||
var entry = this._indexMap[idx];
|
||||
this._indexMap[idx].idx = idx + 1;
|
||||
this._indexMap[this._indexMap[idx].idx] = this._indexMap[idx];
|
||||
if (this._selectionMgr && this._selectionMgr._registeredRows[entry.uid]) {
|
||||
this._selectionMgr._registeredRows[entry.uid].idx = entry.idx;
|
||||
}
|
||||
}
|
||||
this._indexMap[_entry.idx] = _entry;
|
||||
}
|
||||
|
Reference in New Issue
Block a user