Skip to content

Commit b7261d4

Browse files
committed
Bug 1198519 - Add link to bug history page to the top-right drop-down menu
1 parent 1f1f0d3 commit b7261d4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@
284284
<menuitem id="action-add-comment" label="Add Comment"></menuitem>
285285
[% END %]
286286
<menuitem id="action-last-comment" label="Last Comment"></menuitem>
287+
<hr>
288+
<menuitem id="action-history" label="History"></menuitem>
287289
</menu>
288290

289291
</div>

extensions/BugModal/web/bug_modal.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,13 @@ $(function() {
329329
$.scrollTo(id);
330330
});
331331

332+
// show bug history
333+
$('#action-history')
334+
.click(function(event) {
335+
event.preventDefault();
336+
document.location.href = 'show_activity.cgi?id=' + BUGZILLA.bug_id;
337+
});
338+
332339
// use scrollTo for in-page activity links
333340
$('.activity-ref')
334341
.click(function(event) {

0 commit comments

Comments
 (0)