summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2011-11-14 07:25:01 +0100
committerByron Jones <bjones@mozilla.com>2011-11-14 07:25:01 +0100
commit75e7b3e3aa50b896640e849fc5531a7db5d61f71 (patch)
tree4e9ad4ce4a1ef1559a3d71bd1df74965e86c9ba3 /template/en/default
parent9cadb22315af5999004c901a8b499d95bed76743 (diff)
downloadbugzilla-75e7b3e3aa50b896640e849fc5531a7db5d61f71.tar.gz
bugzilla-75e7b3e3aa50b896640e849fc5531a7db5d61f71.tar.xz
Bug 450348: add a menu to clone to allow cloning into the same component
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/navigate.html.tmpl14
1 files changed, 12 insertions, 2 deletions
diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl
index 46b92aec4..56150bec3 100644
--- a/template/en/default/bug/navigate.html.tmpl
+++ b/template/en/default/bug/navigate.html.tmpl
@@ -29,12 +29,22 @@
<li>&nbsp;-&nbsp;<a href="show_bug.cgi?ctype=xml&amp;id=
[% bug.bug_id FILTER uri %]">XML</a></li>
<li>&nbsp;-&nbsp;<a href="enter_bug.cgi?cloned_bug_id=
- [% bug.bug_id FILTER uri %]">Clone This
+ [% bug.bug_id FILTER uri %]"
+ id="clone_bug">Clone This
[% terms.Bug %]</a></li>
[%# Links to more things users can do with this bug. %]
[% Hook.process("links") %]
<li>&nbsp;-&nbsp;<a href="#">Top of page </a></li>
- </ul>
+ </ul>
+ <script type="text/javascript">
+ YAHOO.util.Event.onDOMReady(function() {
+ init_clone_bug_menu(
+ YAHOO.util.Dom.get('clone_bug'),
+ '[% bug.bug_id FILTER js %]',
+ '[% bug.product FILTER js %]',
+ '[% bug.component FILTER js %]');
+ });
+ </script>
[% END %]