summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-10-05 06:05:20 +0200
committerByron Jones <glob@mozilla.com>2015-10-05 06:05:20 +0200
commitb7261d46a0b3075c8a55fdc056c35aaa7dfbe72b (patch)
tree84e16a9d8ddfe4157ee7cbab7be2a6e25ed48c6d
parent1f1f0d3276bef3844e8d381ba8277585c671466e (diff)
downloadbugzilla-b7261d46a0b3075c8a55fdc056c35aaa7dfbe72b.tar.gz
bugzilla-b7261d46a0b3075c8a55fdc056c35aaa7dfbe72b.tar.xz
Bug 1198519 - Add link to bug history page to the top-right drop-down menu
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl2
-rw-r--r--extensions/BugModal/web/bug_modal.js7
2 files changed, 9 insertions, 0 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
index fd193b182..0947398d6 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -284,6 +284,8 @@
<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>
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index f055144c1..202c85920 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -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) {