mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Fix nm displayed row count was not updated when adding a row.
This seems to have resolved the issue of the last row going missing.
This commit is contained in:
parent
030dafc0a7
commit
d525347275
@ -608,6 +608,8 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
if (index === false) {
|
if (index === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Increase displayed row count
|
||||||
|
this.controller._grid.setTotalCount(this.controller._grid.getTotalCount() + 1);
|
||||||
// Insert at the top of the list, or where app said
|
// Insert at the top of the list, or where app said
|
||||||
var entry = this.controller._selectionMgr._getRegisteredRowsEntry(uid);
|
var entry = this.controller._selectionMgr._getRegisteredRowsEntry(uid);
|
||||||
entry.idx = typeof index == "number" ? index : 0;
|
entry.idx = typeof index == "number" ? index : 0;
|
||||||
|
@ -911,6 +911,9 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Increase displayed row count
|
||||||
|
this.controller._grid.setTotalCount(this.controller._grid.getTotalCount()+1);
|
||||||
|
|
||||||
// Insert at the top of the list, or where app said
|
// Insert at the top of the list, or where app said
|
||||||
var entry = this.controller._selectionMgr._getRegisteredRowsEntry(uid);
|
var entry = this.controller._selectionMgr._getRegisteredRowsEntry(uid);
|
||||||
entry.idx = typeof index == "number" ? index : 0;
|
entry.idx = typeof index == "number" ? index : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user