diff options
author | lpsolit%gmail.com <> | 2007-05-15 00:56:29 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-05-15 00:56:29 +0200 |
commit | d48ca3b1db102bb50b831ce0f9bbbf7117afedd8 (patch) | |
tree | e117c17bd33808abebd0c3a02a6613fbf51a998e /template/en/default/bug/create | |
parent | 3941c84b967f6d35062c429728b252e26bcd080d (diff) | |
download | bugzilla-d48ca3b1db102bb50b831ce0f9bbbf7117afedd8.tar.gz bugzilla-d48ca3b1db102bb50b831ce0f9bbbf7117afedd8.tar.xz |
Bug 80169: JavaScript-enhanced keyword editing - Patch by Teemu Mannermaa <wicked@etlicon.fi> r=justdave a=LpSolit
Diffstat (limited to 'template/en/default/bug/create')
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 10 | ||||
-rw-r--r-- | template/en/default/bug/create/created.html.tmpl | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index af7285cac..883db1893 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -31,7 +31,7 @@ [% PROCESS global/header.html.tmpl title = title style_urls = [ 'skins/standard/create_attachment.css' ] - javascript_urls = [ "js/attachment.js" ] + javascript_urls = [ "js/attachment.js", "js/util.js", "js/keyword-chooser.js" ] %] <script type="text/javascript"> @@ -486,7 +486,7 @@ function handleWantsAttachment(wants_attachment) { </strong> </td> <td colspan="3"> - <input name="keywords" size="60" value="[% keywords FILTER html %]"> (optional) + <input id="keywords" name="keywords" size="60" value="[% keywords FILTER html %]" onfocus="this.chooser.open();"> (optional) </td> </tr> [% END %] @@ -575,6 +575,12 @@ function handleWantsAttachment(wants_attachment) { <input type="hidden" name="form_name" value="enter_bug"> </form> +[% IF use_keywords %] + [% PROCESS "bug/keyword-chooser.html.tmpl" + sel_keywords = keywords.split(', ') + %] +[% END %] + [%# Links or content with more information about the bug being created. %] [% Hook.process("end") %] diff --git a/template/en/default/bug/create/created.html.tmpl b/template/en/default/bug/create/created.html.tmpl index 17f057ca0..dbdf24432 100644 --- a/template/en/default/bug/create/created.html.tmpl +++ b/template/en/default/bug/create/created.html.tmpl @@ -37,6 +37,7 @@ [% PROCESS global/header.html.tmpl title = "$terms.Bug $id Submitted" + javascript_urls = [ "js/util.js", "js/keyword-chooser.js" ] %] [% header_done = 1 %] |