<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 %]
},
]
});
+ $.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')