summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web/bug_modal.js
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-08-14 08:41:48 +0200
committerByron Jones <glob@mozilla.com>2015-08-14 08:41:48 +0200
commit6f08830062695fbb7c2e1db6cad451e2fb8efd94 (patch)
tree482a14208710a732eeb7af8061fe4aa4035c236d /extensions/BugModal/web/bug_modal.js
parent99331e920d4faf3995880faf30d256ace57840c4 (diff)
downloadbugzilla-6f08830062695fbb7c2e1db6cad451e2fb8efd94.tar.gz
bugzilla-6f08830062695fbb7c2e1db6cad451e2fb8efd94.tar.xz
Bug 1181596 - Modal UI doesn't honor the "where to put the additional comment textarea" preference
Diffstat (limited to 'extensions/BugModal/web/bug_modal.js')
-rw-r--r--extensions/BugModal/web/bug_modal.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index a72319c72..393b23b55 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -106,6 +106,13 @@ $(function() {
$.scrollTo($('body'));
});
+ // bottom btn
+ $('#bottom-btn')
+ .click(function(event) {
+ event.preventDefault();
+ $.scrollTo($('#bottom-actions'));
+ });
+
// use non-native tooltips for relative times and bug summaries
$('.rel-time, .rel-time-title, .bz_bug_link, .tt').tooltip({
position: { my: "left top+8", at: "left bottom", collision: "flipfit" },
@@ -306,7 +313,7 @@ $(function() {
});
// add comment menuitem, scroll the textarea into view
- $('#action-add-comment')
+ $('#action-add-comment, #add-comment-btn')
.click(function(event) {
event.preventDefault();
// focus first to grow the textarea, so we scroll to the correct location