From: travis%sedsystems.ca <> Date: Wed, 16 Feb 2005 01:13:02 +0000 (+0000) Subject: Bug 281632 : Add javascript to focus/select the voting textbox or checkbox X-Git-Tag: bugzilla-2.19.3~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ebb1dc2f70d884adb8c2e308ffc36fde647398;p=thirdparty%2Fbugzilla.git Bug 281632 : Add javascript to focus/select the voting textbox or checkbox Patch by GavinS r=wurblzap a=justdave --- diff --git a/template/en/default/bug/votes/list-for-user.html.tmpl b/template/en/default/bug/votes/list-for-user.html.tmpl index b7a47e2e0f..e0d97acb15 100644 --- a/template/en/default/bug/votes/list-for-user.html.tmpl +++ b/template/en/default/bug/votes/list-for-user.html.tmpl @@ -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 %] -
+ @@ -105,10 +112,10 @@ [% IF canedit %] [% IF product.onevoteonly %] + [% " checked" IF bug.count %] id="bug_[% bug.id %]"> [% ELSE %] + size="2" id="bug_[% bug.id %]"> [% END %] [% ELSE %] [% bug.count %]