Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
430572d3
Commit
430572d3
authored
Sep 11, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch by fred@dicad.de (Friedhelm Goesling) -- make Javascript work under IE.
parent
50ff63b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
query.cgi
query.cgi
+11
-9
No files found.
query.cgi
View file @
430572d3
...
...
@@ -199,11 +199,16 @@ my $emailinput2 = GenerateEmailInput(2);
my
$jscript
=
<<
'ENDSCRIPT'
;
<
script
language
=
"Javascript1.2"
type
=
"text/javascript"
>
<!--
function
array_push
(
str
)
{
this
[
this
.
length
]
=
str
;
return
this
;
}
Array
.
prototype
.
push
=
array_push
;
var
cpts
=
new
Array
();
var
vers
=
new
Array
();
//
Apparently
,
IE4
chokes
on
the
below
,
so
do
nothing
if
running
that
.
var
agt
=
navigator
.
userAgent
.
toLowerCase
();
if
((
agt
.
indexOf
(
"msie"
)
==
-
1
))
{
ENDSCRIPT
...
...
@@ -214,11 +219,11 @@ my $i = 0;
my
$j
=
0
;
foreach
$c
(
@::legal_components
)
{
$jscript
.=
"cpts['$c'] =
[]
;\n"
;
$jscript
.=
"cpts['$c'] =
new Array()
;\n"
;
}
foreach
$v
(
@::legal_versions
)
{
$jscript
.=
"vers['$v'] =
[]
;\n"
;
$jscript
.=
"vers['$v'] =
new Array()
;\n"
;
}
...
...
@@ -239,13 +244,10 @@ for $p (@::legal_product) {
$i
=
0
;
$jscript
.=
q{
\} // end IE4 choke around
// Only display versions/components valid for selected product(s)
function selectProduct(f) {
// Apparently, IE4 chokes on the below, so do nothing if running that.
var agt=navigator.userAgent.toLowerCase();
if ((agt.indexOf("msie") != -1)) return;
// Netscape 4.04 and 4.05 also choke with an "undefined"
// error. if someone can figure out how to "define" the
// whatever, we'll remove this hack. in the mean time, we'll
...
...
@@ -290,7 +292,7 @@ function selectProduct(f) {
if (doit) {
var l = f.component.length;
f.component[l] = new Option(c, c);
if (csel[c]
!= undefined
) {
if (csel[c]) {
f.component[l].selected = true;
}
}
...
...
@@ -322,7 +324,7 @@ function selectProduct(f) {
if (doit) {
var l = f.version.length;
f.version[l] = new Option(v, v);
if (vsel[v]
!= undefined
) {
if (vsel[v]) {
f.version[l].selected = true;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment