Bug 574117 - Allow paging through the application and document results in the overlay
Add a display control that contains page numbers for the result pages and is shown in the expanded results view. All of the page selection and switching is handled by the GenericDisplay which exposes a displayControl actor, which is then displayed by the Sideshow.
This commit is contained in:
@ -166,16 +166,15 @@ AppDisplay.prototype = {
|
||||
|
||||
// Sets the list of the displayed items based on the list of DEFAULT_APPLICATIONS.
|
||||
_setDefaultList : function() {
|
||||
this._removeAllDisplayItems();
|
||||
let added = 0;
|
||||
for (let i = 0; i < DEFAULT_APPLICATIONS.length && added < this._maxItems; i++) {
|
||||
this._matchedItems = [];
|
||||
for (let i = 0; i < DEFAULT_APPLICATIONS.length; i++) {
|
||||
let appId = DEFAULT_APPLICATIONS[i];
|
||||
let appInfo = this._allItems[appId];
|
||||
if (appInfo) {
|
||||
this._addDisplayItem(appId);
|
||||
added += 1;
|
||||
this._matchedItems.push(appId);
|
||||
}
|
||||
}
|
||||
this._displayMatchedItems(true);
|
||||
},
|
||||
|
||||
// Compares items associated with the item ids based on the alphabetical order
|
||||
|
Reference in New Issue
Block a user