File: update.html

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (104 lines) | stat: -rw-r--r-- 2,645 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<html>
<head>
   <title>Mozilla 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 )
       {
         if ( e.name.match(/browser/i) )
         {
           // browser made up of browser.xpi + install.xpi on the Mac
           xpi["Browser"] = "xpi/browser.xpi";
           xpi["XPCOM"]   = "xpi/xpcom.xpi";
           numxpi += 2;
         }
         else
         {
           xpi[e.value] = "xpi/"+e.name+".xpi";
           numxpi++;
         }
       }
    }

    // showprops(xpi);
    InstallTrigger.install(xpi,statusCallback);
}
</script>


<h2>Mozilla 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="browser" value="Navigator" checked> Navigator <br>
<input type="checkbox" name="mail" value="Mail" checked> Mail <br>
<input type="checkbox" name="chatzilla" value="Chatzilla" checked> Chatzilla <br>
<input type="button" value="Launch XPInstall" onclick="launch()">
</form>
</body>
</html>