Skip to content

Commit 991b48e

Browse files
author
Dylan Hardison
committed
Bug 1146778 - link to the classic printing format for now
1 parent 407add6 commit 991b48e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@
12181218
<div id="bottom-actions">
12191219
<div id="bottom-right-actions">
12201220
<button type="button" id="top-btn" class="minor">Top &uarr;</button>
1221+
<button type="button" id="format-btn" class="minor">Format &#9662;</button>
12211222
[% IF user.id %]
12221223
<button type="button" id="new-bug-btn" class="minor">New/Clone [% terms.Bug %] &#9662;</button>
12231224
[% END %]

extensions/BugModal/web/bug_modal.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,30 @@ $(function() {
10261026
},
10271027
]
10281028
});
1029+
$.contextMenu({
1030+
selector: '#format-btn',
1031+
trigger: 'left',
1032+
items: [
1033+
{
1034+
name: 'For Printing',
1035+
callback: function() {
1036+
window.location.href = 'show_bug.cgi?format=multiple&id=' + BUGZILLA.bug_id;
1037+
}
1038+
},
1039+
{
1040+
name: 'XML',
1041+
callback: function() {
1042+
window.location.href = 'show_bug.cgi?ctype=xml&id=' + BUGZILLA.bug_id;
1043+
}
1044+
},
1045+
{
1046+
name: 'Legacy',
1047+
callback: function() {
1048+
window.location.href = 'show_bug.cgi?format=default&id=' + BUGZILLA.bug_id;
1049+
}
1050+
}
1051+
]
1052+
});
10291053

10301054
// "reset to default" checkboxes
10311055
$('#product, #component')

0 commit comments

Comments
 (0)