Fix removing (delete) a row from nextmatch

- Fix broken destroy callback
- Fix caching & actions to be removed
- Fix always removing the last row also
- Fix indexing so arrow keys work over sparse indexMap
This commit is contained in:
Nathan Gray
2014-01-17 17:57:59 +00:00
parent 0c2d8f87b9
commit 344a63b37c
3 changed files with 39 additions and 6 deletions

View File

@ -568,7 +568,10 @@ var et2_dataview_controller = Class.extend({
// If there's no data, stop
if(typeof _data == "undefined" || _data == null)
{
this._destroyCallback();
this.self._destroyCallback.call(
this,
this.entry.row
);
return;
}
@ -632,6 +635,7 @@ var et2_dataview_controller = Class.extend({
if (this.entry.row)
{
var tr = this.entry.row.getDOMNode();
this.self._selectionMgr._updateState(this.entry.uid, EGW_AO_STATE_NORMAL)
this.self._selectionMgr.unregisterRow(this.entry.uid, tr);
}