diff options
author | Byron Jones <glob@mozilla.com> | 2015-08-14 08:41:48 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-08-14 08:41:48 +0200 |
commit | 6f08830062695fbb7c2e1db6cad451e2fb8efd94 (patch) | |
tree | 482a14208710a732eeb7af8061fe4aa4035c236d /extensions/BugModal/web | |
parent | 99331e920d4faf3995880faf30d256ace57840c4 (diff) | |
download | bugzilla-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')
-rw-r--r-- | extensions/BugModal/web/bug_modal.css | 1 | ||||
-rw-r--r-- | extensions/BugModal/web/bug_modal.js | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css index 696c5e192..007d63592 100644 --- a/extensions/BugModal/web/bug_modal.css +++ b/extensions/BugModal/web/bug_modal.css @@ -343,6 +343,7 @@ input[type="number"] { } #bottom-actions { + margin-top: 8px; margin-bottom: 50px; max-width: 1024px; } 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 |