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
0ab45f45
Commit
0ab45f45
authored
Feb 01, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The "And" and "Or" buttons now work faster, if you have Javascript
enabled. (If you don't have Javascript, they work just like they did before.)
parent
2966b6c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
query.cgi
query.cgi
+6
-4
No files found.
query.cgi
View file @
0ab45f45
...
...
@@ -694,6 +694,8 @@ my @types = (
);
print
qq{<A NAME="chart"> </A>\n}
;
foreach
my
$cmd
(
grep
(
/^cmd-/
,
keys
(
%::
FORM
)))
{
if
(
$cmd
=~
/^cmd-add(\d+)-(\d+)-(\d+)$/
)
{
$::FORM
{
"field$1-$2-$3"
}
=
"xyzzy"
;
...
...
@@ -709,7 +711,7 @@ if (!exists $::FORM{'field0-0-0'}) {
$::FORM
{
'field0-0-0'
}
=
"xyzzy"
;
}
print
qq{<A NAME="chart"> </A>\n
}
;
my
$jsmagic
=
qq{ONCLICK="document.forms[0].action='query.cgi#chart' ; document.forms[0].method='POST' ; return 1;"
}
;
my
$chart
;
for
(
$chart
=
0
;
exists
$::FORM
{
"field$chart-0-0"
}
;
$chart
++
)
{
...
...
@@ -732,7 +734,7 @@ for ($chart=0 ; exists $::FORM{"field$chart-0-0"} ; $chart++) {
push
(
@cols
,
$line
);
}
push
(
@rows
,
"<TR>"
.
join
(
qq{<TD ALIGN="center"> or </TD>\n}
,
@cols
)
.
qq{<TD><INPUT TYPE="submit" VALUE="Or" NAME="cmd-add$chart-$row-$col"></TD></TR>}
);
qq{<TD><INPUT TYPE="submit" VALUE="Or" NAME="cmd-add$chart-$row-$col"
$jsmagic
></TD></TR>}
);
}
print
qq{
<HR>
...
...
@@ -740,13 +742,13 @@ for ($chart=0 ; exists $::FORM{"field$chart-0-0"} ; $chart++) {
}
;
print
join
(
'<TR><TD>And</TD></TR>'
,
@rows
);
print
qq{
<TR><TD><INPUT TYPE="submit" VALUE="And" NAME="cmd-add$chart-$row-0">
<TR><TD><INPUT TYPE="submit" VALUE="And" NAME="cmd-add$chart-$row-0"
$jsmagic
>
}
;
my
$n
=
$chart
+
1
;
if
(
!
exists
$::FORM
{
"field$n-0-0"
})
{
print
qq{
<INPUT TYPE="submit" VALUE="Add another boolean chart" NAME="cmd-add$n-0-0">
<INPUT TYPE="submit" VALUE="Add another boolean chart" NAME="cmd-add$n-0-0"
$jsmagic
>
<NOBR><A HREF="booleanchart.html">What is this stuff?</A></NOBR>
}
;
...
...
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