Fix Select All sometimes misses rows if there's between 50 and 1000 and you scroll down

This commit is contained in:
nathangray 2018-11-05 15:54:26 -07:00
parent 7089489db9
commit 78752738d2

View File

@ -355,6 +355,12 @@ var et2_dataview_selectionManager = (function(){ "use strict"; return Class.exte
// Create an action object for the tr and connect it to a dummy AOI
if(this._actionObjectManager)
{
if(this._actionObjectManager.getObjectById(_uid))
{
var state = _entry.state;
this._actionObjectManager.getObjectById(_uid).remove();
_entry.state = state;
}
_entry.ao = this._actionObjectManager.addObject(_uid, dummyAOI);
}
@ -656,7 +662,9 @@ var et2_dataview_selectionManager = (function(){ "use strict"; return Class.exte
var data = egw.dataGetUIDdata(_order[j]);
if(!data || data && data.data && !data.data.no_actions)
{
this.setSelected(_order[j], true);
var entry = this._getRegisteredRowsEntry(_order[j]);
this._updateEntryState(entry,
egwSetBit(entry.state, EGW_AO_STATE_SELECTED, true));
}
}
progressbar.set_value(100*(++range_index/range_count));