From 991b48e7cb918b704a3f7abd9e90fc198fcd7eaf Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Wed, 1 Jun 2016 15:46:21 -0400 Subject: Bug 1146778 - link to the classic printing format for now --- extensions/BugModal/web/bug_modal.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'extensions/BugModal/web') 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') -- cgit v1.2.3-24-g4f1b