Bug 302980. Malformed get more extensions URL. r+a=mconnor

This commit is contained in:
aaronleventhal%moonset.net 2005-08-04 21:16:28 +00:00
Родитель 15d07051a7
Коммит 7d376a9edf
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -209,7 +209,6 @@ function Startup()
gGetMoreURL = pref.getComplexValue(isExtensions ? PREF_EXTENSIONS_GETMOREEXTENSIONSURL
: PREF_EXTENSIONS_GETMORETHEMESURL,
Components.interfaces.nsIPrefLocalizedString).data;
document.getElementById('getMore').setAttribute('href', gGetMoreURL);
var app = Components.classes["@mozilla.org/xre/app-info;1"]
.getService(Components.interfaces.nsIXULAppInfo);
gGetMoreURL = gGetMoreURL.replace(/%APPID%/g, app.ID);
@ -217,6 +216,7 @@ function Startup()
var getMore = document.getElementById("getMore");
getMore.setAttribute("value", getMore.getAttribute(isExtensions ? "valueextensions" : "valuethemes"));
getMore.setAttribute("tooltiptext", getMore.getAttribute(isExtensions ? "tooltiptextextensions" : "tooltiptextthemes"));
getMore.setAttribute('href', gGetMoreURL);
if (!isExtensions) {
var themePreviewArea = document.getElementById("themePreviewArea");