diff options
author | David Prévot <taffit-guest> | 2011-01-28 00:01:09 +0000 |
---|---|---|
committer | David Prévot <taffit-guest> | 2011-01-28 00:01:09 +0000 |
commit | b26988bb27836d1a252aaf3cfa7b81dccdc7cefa (patch) | |
tree | 6d88afff4376a8557a11d33727845744901d2374 /english/mirror/submit.inc | |
parent | e393a8c87bcd1ef319f2d270f395f0da735c5efb (diff) |
Fix architecture selection
CVS version numbers
english/mirror/submit.inc: 1.8 -> 1.9
Diffstat (limited to 'english/mirror/submit.inc')
-rw-r--r-- | english/mirror/submit.inc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/english/mirror/submit.inc b/english/mirror/submit.inc index 87f277fb2e9..3b85cf4837c 100644 --- a/english/mirror/submit.inc +++ b/english/mirror/submit.inc @@ -62,13 +62,14 @@ function giveau(element) { </script> #include "$(ENGLISHDIR)/releases/sid/archive.data" +#include "$(ENGLISHDIR)/releases/arches.data" <define-tag archlist> <div id="archlist"> <: -my $na = scalar keys %arches; $na = int($na / 4 + .5); +my $na = scalar @arches; $na = int($na / 4 + .5); my $i = 0; -foreach my $a (sort keys %arches) { +foreach my $a (@arches) { my $aname = $arches{$a}; $aname =~ s, ,\ \;,g; print "<label id=arch_".$a." style=\"white-space: pre\"><input type=checkbox id=cbarch_".$a." name=architectures value=".$a."> ".$aname." [".$a."]</label>"; $i++; @@ -93,14 +94,14 @@ function allarches() { al.style.color = "#000000"; al.style.backgroundColor = "#ffffff"; } - var arches = new Object(); + var locarches = new Object(); <: - foreach my $a (sort keys %arches) { - print " arches[\'$a\'] = \'cbarch_$a\';\n"; + foreach my $a (@arches) { + print " locarches[\'$a\'] = \'cbarch_$a\';\n"; } :> - for ( a in arches ) { - ele = document.getElementById(arches[a]); + for ( a in locarches ) { + ele = document.getElementById(locarches[a]); if (ele.checked == false) ele.checked = true; } |