]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1198519 - Add link to bug history page to the top-right drop-down menu
authorByron Jones <glob@mozilla.com>
Mon, 5 Oct 2015 04:05:20 +0000 (12:05 +0800)
committerByron Jones <glob@mozilla.com>
Mon, 5 Oct 2015 04:05:20 +0000 (12:05 +0800)
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/BugModal/web/bug_modal.js

index fd193b182c7c1760e54d5ad2e32b751612ae07fd..0947398d655b11dbdb037b973f7a5aa3b1a989c2 100644 (file)
           <menuitem id="action-add-comment" label="Add Comment"></menuitem>
         [% END %]
         <menuitem id="action-last-comment" label="Last Comment"></menuitem>
+        <hr>
+        <menuitem id="action-history" label="History"></menuitem>
       </menu>
 
     </div>
index f055144c16672a81276e1576f3dbe2c160a408f7..202c85920ff01f0894f39e9d6460cd5c823fe9db 100644 (file)
@@ -329,6 +329,13 @@ $(function() {
             $.scrollTo(id);
         });
 
+    // show bug history
+    $('#action-history')
+        .click(function(event) {
+            event.preventDefault();
+            document.location.href = 'show_activity.cgi?id=' + BUGZILLA.bug_id;
+        });
+
     // use scrollTo for in-page activity links
     $('.activity-ref')
         .click(function(event) {