]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1146778 - link to the classic printing format for now
authorDylan Hardison <dylan@mozilla.com>
Wed, 1 Jun 2016 19:46:21 +0000 (15:46 -0400)
committerDylan Hardison <dylan@mozilla.com>
Wed, 1 Jun 2016 19:46:37 +0000 (15:46 -0400)
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/BugModal/web/bug_modal.js

index f76e84bf65eb18ff1873197e8c84638ae773ad9f..f18d0e7b70db38bd263f283535e8826663195f22 100644 (file)
 <div id="bottom-actions">
   <div id="bottom-right-actions">
     <button type="button" id="top-btn" class="minor">Top &uarr;</button>
+    <button type="button" id="format-btn" class="minor">Format &#9662;</button>
     [% IF user.id %]
       <button type="button" id="new-bug-btn" class="minor">New/Clone [% terms.Bug %] &#9662;</button>
     [% END %]
index 46a00048208141033811c55b73c43843ce59d944..ed1c301b4e8c8860f3d8d619e666ec84af1d5c57 100644 (file)
@@ -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')