forked from extern/egroupware
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
|
// Clear the grid
|
||||||
this._grid.clear();
|
this._grid.clear();
|
||||||
|
|
||||||
|
// Clear the queue
|
||||||
|
this._queue = {};
|
||||||
|
|
||||||
// Update the data
|
// Update the data
|
||||||
this.update();
|
this.update();
|
||||||
},
|
},
|
||||||
@ -763,6 +766,10 @@ var et2_dataview_controller = Class.extend({
|
|||||||
// count, if a specific count was requested
|
// count, if a specific count was requested
|
||||||
var order = this.count != 0 ? _response.order.splice(0, this.count) : _response.order;
|
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
|
// Get the current index map for the updated region
|
||||||
var idxMap = this.self._getIndexMapping(this.start, order.length);
|
var idxMap = this.self._getIndexMapping(this.start, order.length);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user