mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Clear queue when results arrive, and in reset()
This commit is contained in:
parent
72c3d211be
commit
735a1afa43
@ -167,6 +167,9 @@ var et2_dataview_controller = Class.extend({
|
||||
// Clear the grid
|
||||
this._grid.clear();
|
||||
|
||||
// Clear the queue
|
||||
this._queue = {};
|
||||
|
||||
// Update the data
|
||||
this.update();
|
||||
},
|
||||
@ -763,6 +766,10 @@ var et2_dataview_controller = Class.extend({
|
||||
// count, if a specific count was requested
|
||||
var order = this.count != 0 ? _response.order.splice(0, this.count) : _response.order;
|
||||
|
||||
// Remove from queue, or it will not be fetched again
|
||||
for(var i = this.start; i < this.start + order.length; i++)
|
||||
delete this.self._queue[i];
|
||||
|
||||
// Get the current index map for the updated region
|
||||
var idxMap = this.self._getIndexMapping(this.start, order.length);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user