From d48ca3b1db102bb50b831ce0f9bbbf7117afedd8 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 14 May 2007 22:56:29 +0000 Subject: Bug 80169: JavaScript-enhanced keyword editing - Patch by Teemu Mannermaa r=justdave a=LpSolit --- template/en/default/bug/edit.html.tmpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'template/en/default/bug/edit.html.tmpl') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 215595e5a..619c594e1 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -204,7 +204,8 @@ Keywords: [% PROCESS input inputname => "keywords" size => 60 colspan => 2 - value => bug.keywords.join(', ') %] + value => bug.keywords.join(', ') + onfocus => "this.chooser.open()" %] [% END %] @@ -542,6 +543,12 @@ +[% IF use_keywords %] + [% PROCESS "bug/keyword-chooser.html.tmpl" + sel_keywords = bug.keywords.split(', ') + %] +[% END %] + [%############################################################################%] [%# Block for the first table in the "Details" section #%] [%############################################################################%] @@ -826,7 +833,8 @@ [% IF bug.check_can_change_field(inputname, 0, 1) %] + [% " maxlength=\"$maxlength\"" IF maxlength %] + [% " onfocus=\"$onfocus\"" IF onfocus %]> [% ELSE %] @@ -843,6 +851,7 @@ [% colspan = 0 %] [% size = 0 %] [% value = undef %] + [% onfocus = undef %] [% END %] [%############################################################################%] -- cgit v1.2.3-24-g4f1b