diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-06-01 21:46:21 +0200 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-06-01 21:46:37 +0200 |
commit | 991b48e7cb918b704a3f7abd9e90fc198fcd7eaf (patch) | |
tree | 6de122e931a4b7bef3c00a5b1e18d4c3ba26762e | |
parent | 407add6f1ad02e5dc907a154bd334ea76e7411b2 (diff) | |
download | bugzilla-991b48e7cb918b704a3f7abd9e90fc198fcd7eaf.tar.gz bugzilla-991b48e7cb918b704a3f7abd9e90fc198fcd7eaf.tar.xz |
Bug 1146778 - link to the classic printing format for now
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl | 1 | ||||
-rw-r--r-- | extensions/BugModal/web/bug_modal.js | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index f76e84bf6..f18d0e7b7 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -1218,6 +1218,7 @@ <div id="bottom-actions"> <div id="bottom-right-actions"> <button type="button" id="top-btn" class="minor">Top ↑</button> + <button type="button" id="format-btn" class="minor">Format ▾</button> [% IF user.id %] <button type="button" id="new-bug-btn" class="minor">New/Clone [% terms.Bug %] ▾</button> [% END %] diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index 46a000482..ed1c301b4 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -1026,6 +1026,30 @@ $(function() { }, ] }); + $.contextMenu({ + selector: '#format-btn', + trigger: 'left', + items: [ + { + name: 'For Printing', + callback: function() { + window.location.href = 'show_bug.cgi?format=multiple&id=' + BUGZILLA.bug_id; + } + }, + { + name: 'XML', + callback: function() { + window.location.href = 'show_bug.cgi?ctype=xml&id=' + BUGZILLA.bug_id; + } + }, + { + name: 'Legacy', + callback: function() { + window.location.href = 'show_bug.cgi?format=default&id=' + BUGZILLA.bug_id; + } + } + ] + }); // "reset to default" checkboxes $('#product, #component') |