Don't reset the page selection if the results have changed while the user
was browsing exiting results This is most noticeable when viewing results in xephyr, and then opening a document in your regular session. But it could also be noticeable if downloading a new file completes while the user is in the overlay. This patch also moves the call to _displayMatchedItems() to _redisplay instead of making it in both _setDefaultList() and _doSearchFilter().
This commit is contained in:
@ -110,7 +110,7 @@ DocDisplay.prototype = {
|
||||
// but redisplaying right away is cool when we use Zephyr.
|
||||
// Also, we might be displaying remote documents, like Google Docs, in the future
|
||||
// which might be edited by someone else.
|
||||
me._redisplay();
|
||||
me._redisplay(false);
|
||||
});
|
||||
},
|
||||
|
||||
@ -163,8 +163,6 @@ DocDisplay.prototype = {
|
||||
}
|
||||
|
||||
this._matchedItems.sort(Lang.bind(this, function (a,b) { return this._compareItems(a,b); }));
|
||||
|
||||
this._displayMatchedItems(true);
|
||||
},
|
||||
|
||||
// Compares items associated with the item ids based on how recently the items
|
||||
|
Reference in New Issue
Block a user