Fix rows staying after deleting by preventing automatic grid stuff while deleting

This commit is contained in:
Nathan Gray
2014-01-22 15:22:29 +00:00
parent 828acc3b37
commit b4ad250438
3 changed files with 16 additions and 15 deletions

View File

@ -753,10 +753,13 @@ var et2_dataview_controller = Class.extend({
// Delete as many rows as we have left, invalidate the corresponding
// index entry
for (var i = mapIdx; i < _idxMap.length; i++)
for (var i = mapIdx; i < this._grid._map.length; i++)
{
this._grid.deleteRow(idx);
_idxMap[i].uid = null;
this._grid.deleteRow(i);
if(typeof _idxMap[i] != 'undefined')
{
_idxMap[i].uid = null;
}
}
return result;