summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-02-04 16:50:59 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-02-04 16:50:59 +0100
commit06242167fc94c0b43ba497510d46477339b91267 (patch)
tree3739d02430f7994b1b07947ac8d1f1e9c6122d1c /template/en/default
parent95aac54ca88a8d7f5df3ae1b62db810e33897e86 (diff)
downloadbugzilla-06242167fc94c0b43ba497510d46477339b91267.tar.gz
bugzilla-06242167fc94c0b43ba497510d46477339b91267.tar.xz
Bug 1128969: 'Clone this bug' redirects to product selection instead of displaying context menu
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/navigate.html.tmpl19
1 files changed, 6 insertions, 13 deletions
diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl
index 95fe5a411..8d7f8df12 100644
--- a/template/en/default/bug/navigate.html.tmpl
+++ b/template/en/default/bug/navigate.html.tmpl
@@ -28,23 +28,16 @@
[% bug.bug_id FILTER uri %]">Format For Printing</a></li>
<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?format=__default__&amp;cloned_bug_id=
- [% bug.bug_id FILTER uri %]"
- id="clone_bug">Clone This
- [% terms.Bug %]</a></li>
+ <li>&nbsp;-&nbsp;
+ <a href="enter_bug.cgi?format=__default__&amp;cloned_bug_id=[% bug.bug_id FILTER uri %]"
+ id="clone_bug"
+ onclick="return show_clone_menu(this, '[% bug.id FILTER js %]', '[% bug.product FILTER js %]', '[% bug.component FILTER js %]');">
+ 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>
- <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 %]
[% SET my_search = user.recent_search_for(bug) %]