Browse code

reorder stable and experimental on debian selector

Sebastian Hahn authored on 11/02/2015 19:08:54
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
 // the terms of the GNU GPLv2, http://www.gnu.org/licenses/gpl-2.0.html.
12 12
 var sources = {};
13 13
 var software = {
14
-'tor': { 'experimental-0.2.6.x': { 'squeeze': [ 'squeeze' ],
14
+'tor': { 'stable': { 'squeeze': [ 'squeeze' ],
15 15
                      'wheezy':  [ 'wheezy' ],
16 16
                      'jessie':  [ 'jessie' ],
17 17
                      'sid':     [ 'sid' ],
... ...
@@ -20,7 +20,7 @@ var software = {
20 20
                      'saucy':   [ 'saucy'],
21 21
                      'trusty':  [ 'trusty'],
22 22
                      'utopic':  [ 'utopic'] },
23
-         'stable':    { 'squeeze': [ 'squeeze' ],
23
+         'experimental-0.2.6.x':    { 'squeeze': [ 'squeeze' ],
24 24
                      'wheezy':  [ 'wheezy' ],
25 25
                      'jessie':  [ 'jessie' ],
26 26
                      'sid':     [ 'sid' ],
... ...
@@ -30,7 +30,7 @@ var software = {
30 30
                      'trusty':  [ 'trusty'],
31 31
                      'utopic':  [ 'utopic'] },
32 32
        },
33
-'tor (from source)': { 'experimental-0.2.6.x': { 'squeeze': [ 'squeeze' ],
33
+'tor (from source)': { 'stable': { 'squeeze': [ 'squeeze' ],
34 34
                      'wheezy':  [ 'wheezy' ],
35 35
                      'jessie':  [ 'jessie' ],
36 36
                      'sid':     [ 'sid' ],
... ...
@@ -39,7 +39,7 @@ var software = {
39 39
                      'saucy':   [ 'saucy'],
40 40
                      'trusty':  [ 'trusty'],
41 41
                      'utopic':  [ 'utopic'] },
42
-         'stable':    { 'squeeze': [ 'squeeze' ],
42
+         'experimental-0.2.6.x':    { 'squeeze': [ 'squeeze' ],
43 43
                      'wheezy':  [ 'wheezy' ],
44 44
                      'jessie':  [ 'jessie' ],
45 45
                      'sid':     [ 'sid' ],
... ...
@@ -89,19 +89,16 @@ function update() {
89 89
     if (package != pkg.prev) {
90 90
         while (ver.firstChild)
91 91
             ver.removeChild(ver.firstChild);
92
-        var selected;
93 92
         for (version in software[package]) {
94 93
             option = document.createElement('option');
95 94
             if (version[0] == '_') {
96 95
                 version = version.slice(1);
97
-                selected = version;
98 96
             }
99 97
             option.appendChild(document.createTextNode(version));
100 98
             option.value = version = version.replace(/ \(.*\)/,'');
101 99
 //alert(version);
102 100
             ver.appendChild(option);
103 101
         }
104
-        ver.value = version = selected || version;
105 102
         pkg.prev = package
106 103
     }
107 104
     try {