diff options
author | Byron Jones <glob@mozilla.com> | 2015-05-28 09:44:19 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-05-28 09:44:19 +0200 |
commit | 09f53409bf172a3d6452d992e3afce7cd7879f12 (patch) | |
tree | 74db9f6a844de699875fedf38e37b5bff5e9dafe /extensions/BugModal/web | |
parent | 236be0474b114ea15a57d61d3be5931a612fb155 (diff) | |
download | bugzilla-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.css | 9 | ||||
-rw-r--r-- | extensions/BugModal/web/bug_modal.js | 9 |
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(); }); |