fixing bug #27856. udpate.html has been moved from the mozilla cvs to

the commercial cvs because it only applies to the
                    commercial build.

affects only windows
r=sgehani
This commit is contained in:
ssu%netscape.com 2000-02-25 04:11:32 +00:00
parent 28f23d520d
commit a44cee448f
2 changed files with 0 additions and 100 deletions

View File

@ -55,9 +55,7 @@ include <$(DEPTH)\config\rules.mak>
install:: $(PROGRAM)
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\install
$(MAKE_INSTALL) *.html $(DIST)\install
clobber_all::
$(RM) $(DIST)\install\$(MODULE).exe
$(RM) $(DIST)\install\*.html

View File

@ -1,98 +0,0 @@
<html>
<head>
<title>Commercial build update</title>
</head>
<body>
<script>
var xpi = new Object();
var numxpi = 0;
var numstatus = 0;
function showprops(obj) {
var props = "";
for (i in obj) {
props += i+":"+obj[i]+"\n ";
}
alert(props);
}
function statusCallback(url,status) {
for (i in xpi) {
if ( url.indexOf(xpi[i]) != -1 ) {
xpi[i] = status;
numstatus++;
break;
}
}
// if we've gotten all results then display them
if (numstatus == numxpi)
{
var text;
var restart = false;
dlg = window.open("","resultWindow");
dlg.document.write("<head><title>XPInstall Results</title></head>");
dlg.document.write("<body><h1>XPInstall Results</h1>");
for (i in xpi)
{
text = " "+i+": ";
switch (status) {
case 999:
restart = true; // fall-through
case 0:
text += "Successful";
break;
default:
text += "Error encountered -- "+status;
break;
}
text += "<br>";
dlg.document.write(text);
}
if (restart) {
dlg.document.write("<p>Some files were in use, you must restart to complete the installation");
}
dlg.document.write("</body>");
dlg.document.close();
}
}
function launch() {
for (var i = 0; i < document.installForm.elements.length; i++)
{
e = document.installForm.elements[i];
if (e.type.match(/checkbox/i) && e.checked )
{
xpi[e.value] = "xpi/"+e.name+".xpi";
numxpi++;
}
}
// showprops(xpi);
InstallTrigger.install(xpi,statusCallback);
}
</script>
<h2>Commercial Build update</h2>
Select the parts of Seamonkey you wish to update and press the Launch button.
<p>
Update all of the pieces you use at once; mismatched versions
will cause you grief.
<form name="installForm">
<input type="checkbox" name="core" value="Navigator" checked> Navigator <br>
<input type="checkbox" name="security" value="SSL/HTTP" checked> SSL/HTTP <br>
<input type="checkbox" name="mail" value="Mail" checked> Mail <br>
<input type="checkbox" name="aim" value="Instant Messenger" checked> Instant Messenger <br>
<input type="checkbox" name="fullcircle" value="FullCircle"> FullCircle <br>
<input type="checkbox" name="spellchecker" value="Spelling Checker"> Spelling Checker <br>
<input type="checkbox" name="psm" value="Cartman"> Cartman <br>
<input type="button" value="Launch XPInstall" onclick="launch()">
</form>
</body>
</html>