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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
a1ebb1dc
Commit
a1ebb1dc
authored
Feb 16, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 281632 : Add javascript to focus/select the voting textbox or checkbox
Patch by GavinS <bugzilla@chimpychompy.org> r=wurblzap a=justdave
parent
d2664956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
list-for-user.html.tmpl
template/en/default/bug/votes/list-for-user.html.tmpl
+10
-3
No files found.
template/en/default/bug/votes/list-for-user.html.tmpl
View file @
a1ebb1dc
...
...
@@ -42,6 +42,13 @@
[% h2 = voting_user.login FILTER html %]
[% IF canedit %]
[% title = "Change Votes" %]
[% IF bug_id %]
[%# We .select and .focus the input so it works for textbox and
checkbox %]
[% onload = "document.forms['voting_form'].bug_" _ bug_id _
".select();document.forms['voting_form'].bug_" _ bug_id _
".focus()" %]
[% END %]
[% ELSE %]
[% title = "Show Votes" %]
[% END %]
...
...
@@ -63,7 +70,7 @@
[% END %]
[% IF products.size %]
<form method="post" action="votes.cgi">
<form
name="voting_form"
method="post" action="votes.cgi">
<input type="hidden" name="action" value="vote">
<table cellspacing="4">
<tr>
...
...
@@ -105,10 +112,10 @@
[% IF canedit %]
[% IF product.onevoteonly %]
<input type="checkbox" name="[% bug.id %]" value="1"
[% " checked" IF bug.count %]>
[% " checked" IF bug.count %]
id="bug_[% bug.id %]"
>
[% ELSE %]
<input name="[% bug.id %]" value="[% bug.count %]"
size="2">
size="2"
id="bug_[% bug.id %]"
>
[% END %]
[% ELSE %]
[% bug.count %]
...
...
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