summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-05-28 09:44:19 +0200
committerByron Jones <glob@mozilla.com>2015-05-28 09:44:19 +0200
commit09f53409bf172a3d6452d992e3afce7cd7879f12 (patch)
tree74db9f6a844de699875fedf38e37b5bff5e9dafe /extensions/BugModal/web
parent236be0474b114ea15a57d61d3be5931a612fb155 (diff)
downloadbugzilla-09f53409bf172a3d6452d992e3afce7cd7879f12.tar.gz
bugzilla-09f53409bf172a3d6452d992e3afce7cd7879f12.tar.xz
Bug 1146787: "take" buttons missing in edit mode
Diffstat (limited to 'extensions/BugModal/web')
-rw-r--r--extensions/BugModal/web/bug_modal.css9
-rw-r--r--extensions/BugModal/web/bug_modal.js9
2 files changed, 14 insertions, 4 deletions
diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css
index e69bcaa2a..afa4719c4 100644
--- a/extensions/BugModal/web/bug_modal.css
+++ b/extensions/BugModal/web/bug_modal.css
@@ -206,6 +206,15 @@ select[multiple], .text_input, .yui-ac-input, input {
width: 170px;
}
+.field-button {
+ float: right;
+ margin-left: 8px;
+}
+
+.field-edit-container {
+ overflow-y: hidden;
+}
+
/* field types */
input[type="number"] {
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index 4c4d83ad8..a9ff51452 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -544,12 +544,13 @@ $(function() {
});
// take button
- $('#take-btn')
+ $('.take-btn')
.click(function(event) {
event.preventDefault();
- $('#field-assigned_to.edit-hide').hide();
- $('#field-assigned_to.edit-show').show();
- $('#assigned_to').val(BUGZILLA.user.login).focus().select();
+ var field = $(this).data('field');
+ $('#field-' + field + '.edit-hide').hide();
+ $('#field-' + field + '.edit-show').show();
+ $('#' + field).val(BUGZILLA.user.login).focus().select();
$('#top-save-btn').show();
});