summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {