mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Fix some nextmatch bugs
- Removed rows could still have jQuery actions bound, resulting in errors - Focused row was not cleared if it was removed, resulting in errors - Fixed double get_rows call on refresh(..., update)
This commit is contained in:
parent
6567e39668
commit
036ec20769
@ -340,7 +340,8 @@ function egwPopupActionImplementation()
|
||||
|
||||
ai.doUnregisterAction = function(_aoi)
|
||||
{
|
||||
//
|
||||
var node = _aoi.getDOMNode();
|
||||
jQuery(node).off();
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -133,6 +133,11 @@ var et2_dataview_selectionManager = /** @class */ (function () {
|
||||
if (typeof this._registeredRows[_uid] !== "undefined"
|
||||
&& this._registeredRows[_uid].tr === _tr) {
|
||||
this._inUpdate = true;
|
||||
// Don't leave focusedEntry
|
||||
// @ts-ignore
|
||||
if (this._focusedEntry !== null && this._focusedEntry.uid == _uid) {
|
||||
this.setFocused(_uid, false);
|
||||
}
|
||||
this._registeredRows[_uid].tr = null;
|
||||
this._registeredRows[_uid].aoi = null;
|
||||
// Remove the action object from its container
|
||||
|
@ -194,6 +194,12 @@ export class et2_dataview_selectionManager
|
||||
{
|
||||
this._inUpdate = true;
|
||||
|
||||
// Don't leave focusedEntry
|
||||
// @ts-ignore
|
||||
if(this._focusedEntry !== null && this._focusedEntry.uid == _uid)
|
||||
{
|
||||
this.setFocused(_uid, false);
|
||||
}
|
||||
this._registeredRows[_uid].tr = null;
|
||||
this._registeredRows[_uid].aoi = null;
|
||||
|
||||
|
@ -567,11 +567,6 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
||||
* @param uid
|
||||
*/
|
||||
et2_nextmatch.prototype.refresh_update = function (uid) {
|
||||
if (!this.egw().dataRefreshUID(uid)) {
|
||||
// Could not update just that row
|
||||
this.applyFilters();
|
||||
return false;
|
||||
}
|
||||
// Row data update has been sent, let's move it where app wants it
|
||||
var entry = this.controller._selectionMgr._getRegisteredRowsEntry(uid);
|
||||
// Need to delete first as there's a good chance indexes will change in an unknown way
|
||||
|
@ -858,13 +858,6 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
||||
*/
|
||||
protected refresh_update(uid: string)
|
||||
{
|
||||
if(!this.egw().dataRefreshUID(uid))
|
||||
{
|
||||
// Could not update just that row
|
||||
this.applyFilters();
|
||||
return false;
|
||||
}
|
||||
|
||||
// Row data update has been sent, let's move it where app wants it
|
||||
let entry = this.controller._selectionMgr._getRegisteredRowsEntry(uid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user