Adapt install.js to the fine HTML stylings of v2-rustico.

Improve Themes copy.
Do a little dance; little love to follow.


git-svn-id: svn://10.0.0.236/trunk@213979 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shaver%mozilla.org
2006-10-22 19:15:27 +00:00
parent cdf4085ccb
commit 516c099c9f
3 changed files with 16 additions and 7 deletions

View File

@@ -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;

View File

@@ -1,6 +1,5 @@
{if $app eq "firefox"}
<div id="mBody">
<h1>Firefox Add-ons</h1>
<p class="frontpage-intro">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.</p>
<div class="addon-feature clearfix">

View File

@@ -1,7 +1,7 @@
{if $app eq "firefox"}
<h1>Themes</h1>
<p>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.</p>
<p>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.</p>
<div class='corner-box compact-list'>
<h3>Browse Themes by Category</h3>