diff --git a/mozilla/webtools/addons/public/htdocs/js/install.js b/mozilla/webtools/addons/public/htdocs/js/install.js index d2329930762..102759e662b 100644 --- a/mozilla/webtools/addons/public/htdocs/js/install.js +++ b/mozilla/webtools/addons/public/htdocs/js/install.js @@ -35,12 +35,17 @@ function install( aEvent, extName, iconURL, extHash) { if (aEvent.altKey) return true; - if (aEvent.target.href.match(/^.+\.xpi$/)) { + var url = aEvent.target.href; + if (!url) { + // rustico puts it somewhere else, of course + url = aEvent.target.parentNode.href; + } + if (url.match(/^.+\.xpi$/)) { var params = new Array(); params[extName] = { - URL: aEvent.target.href, + URL: url, IconURL: iconURL, toString: function () { return this.URL; } }; @@ -57,7 +62,7 @@ function install( aEvent, extName, iconURL, extHash) { try { var p = new XMLHttpRequest(); - p.open("GET", "/install.php?uri="+aEvent.target.href, true); + p.open("GET", "/install.php?uri=" + url, true); p.send(null); } catch(e) { } @@ -67,11 +72,16 @@ function install( aEvent, extName, iconURL, extHash) { } function installTheme( aEvent, extName) { - InstallTrigger.installChrome(InstallTrigger.SKIN,aEvent.target.href,extName); + var url = aEvent.target.href; + if (!url) { + // rustico puts it somewhere else, of course + url = aEvent.target.parentNode.href; + } + InstallTrigger.installChrome(InstallTrigger.SKIN,url,extName); try { var p = new XMLHttpRequest(); - p.open("GET", "/install.php?uri="+aEvent.target.href, true); + p.open("GET", "/install.php?uri="+url, true); p.send(null); } catch(e) { } return false; diff --git a/mozilla/webtools/addons/public/tpl/index.tpl b/mozilla/webtools/addons/public/tpl/index.tpl index bb2f881a14e..d9e872ec2bb 100644 --- a/mozilla/webtools/addons/public/tpl/index.tpl +++ b/mozilla/webtools/addons/public/tpl/index.tpl @@ -1,6 +1,5 @@ {if $app eq "firefox"}
-

Firefox Add-ons

Add-ons extend Firefox, letting you personalize your browsing experience. They can make a tiny tweak, or bring a whole new range of features to your favorite browser. Take a look around and make Firefox your own.

diff --git a/mozilla/webtools/addons/public/tpl/themes.tpl b/mozilla/webtools/addons/public/tpl/themes.tpl index 4df95e422a2..dd3f6c701e2 100644 --- a/mozilla/webtools/addons/public/tpl/themes.tpl +++ b/mozilla/webtools/addons/public/tpl/themes.tpl @@ -1,7 +1,7 @@ {if $app eq "firefox"}

Themes

-

Themes are new clothes for your Firefox, another great way to personalize it to your tastes. A theme can change only a few colors, or it can change every piece of Firefox's appearance.

+

Themes are like new clothes for your Firefox. A theme can change only a few colors, or every piece of Firefox's appearance. It's another great way to personalize Firefox to your tastes.

Browse Themes by Category