зеркало из https://github.com/mozilla/pjs.git
Bug 596519 - Fix some Add-on Manager problems [r=vingtetun]
This commit is contained in:
Родитель
061369682f
Коммит
a3bdb901d3
|
@ -176,11 +176,11 @@ pref("extensions.update.url", "https://versioncheck.addons.mozilla.org/update/Ve
|
|||
|
||||
/* preferences for the Get Add-ons pane */
|
||||
pref("extensions.getAddons.cache.enabled", true);
|
||||
pref("extensions.getAddons.maxResults", 5);
|
||||
pref("extensions.getAddons.maxResults", 15);
|
||||
pref("extensions.getAddons.recommended.browseURL", "https://addons.mozilla.org/%LOCALE%/mobile/recommended/");
|
||||
pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/list/featured/all/10/%OS%/%VERSION%");
|
||||
pref("extensions.getAddons.recommended.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/list/featured/all/%MAX_RESULTS%/%OS%/%VERSION%");
|
||||
pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/mobile/search?q=%TERMS%");
|
||||
pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/search/%TERMS%/all/10/%OS%/%VERSION%");
|
||||
pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/mobile/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%");
|
||||
pref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/%LOCALE%/mobile/");
|
||||
|
||||
/* blocklist preferences */
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<xul:label class="normal hide-on-select" xbl:inherits="value=description" crop="end" flex="1"/>
|
||||
<xul:description class="normal show-on-select" xbl:inherits="xbl:text=description" flex="1"/>
|
||||
<xul:label class="updateStatus normal-bold" xbl:inherits="value=updateStatus"/>
|
||||
<xul:label class="blockStatus normal-bold" xbl:inherits="value=blockedStatus"/>
|
||||
<xul:label class="blockedStatus normal-bold" xbl:inherits="value=blockedStatus"/>
|
||||
</xul:vbox>
|
||||
</xul:vbox>
|
||||
</xul:hbox>
|
||||
|
|
|
@ -314,7 +314,8 @@ var ExtensionsView = {
|
|||
listitem.setAttribute("opType", opType);
|
||||
listitem.setAttribute("updateable", updateable);
|
||||
listitem.setAttribute("isReadonly", !uninstallable);
|
||||
listitem.setAttribute("blockedStatus", blocked);
|
||||
if (blocked)
|
||||
listitem.setAttribute("blockedStatus", blocked);
|
||||
listitem.addon = addon;
|
||||
self._list.insertBefore(listitem, self._repoItem);
|
||||
}
|
||||
|
@ -538,7 +539,8 @@ var ExtensionsView = {
|
|||
listitem.install = addon.install;
|
||||
listitem.setAttribute("sourceURL", addon.install.sourceURI.spec);
|
||||
if (!aIsRecommended)
|
||||
listitem.setAttribute("rating", addon.rating);
|
||||
listitem.setAttribute("rating", addon.averageRating);
|
||||
|
||||
let item = this._list.appendChild(listitem);
|
||||
|
||||
if (aSelectFirstResult && !foundItem) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче