summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-12-01 06:11:41 +0100
committerByron Jones <glob@mozilla.com>2015-12-01 06:11:41 +0100
commit7bf9ad78543d0f95c655afab376de6fc4687f3d2 (patch)
tree41fd4a616491e1997059b0149fee7abe9e246564 /extensions/BugModal/web
parent2ec51002974e8ee9d0d4107509d1455ab19b6a87 (diff)
downloadbugzilla-7bf9ad78543d0f95c655afab376de6fc4687f3d2.tar.gz
bugzilla-7bf9ad78543d0f95c655afab376de6fc4687f3d2.tar.xz
Bug 1149952 - Can't change bug status to ASSIGNED in one click
Diffstat (limited to 'extensions/BugModal/web')
-rw-r--r--extensions/BugModal/web/bug_modal.css2
-rw-r--r--extensions/BugModal/web/bug_modal.js12
2 files changed, 13 insertions, 1 deletions
diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css
index fb17a5a71..d895a63dd 100644
--- a/extensions/BugModal/web/bug_modal.css
+++ b/extensions/BugModal/web/bug_modal.css
@@ -258,7 +258,7 @@ input[type="number"] {
margin-left: 8px;
}
-#duplicate-container, #duplicate-actions,
+#duplicate-container, #duplicate-actions, #assigned-container,
#bottom-duplicate-container, #bottom-duplicate-actions {
display: table-cell;
vertical-align: top;
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index 2a9c3d901..e1ea608a2 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -766,6 +766,11 @@ $(function() {
$('.take-btn')
.click(function(event) {
event.preventDefault();
+ $('#field-status-view').hide();
+ $('#field-status-edit').show();
+ if ($('#bug_status option').filter(function() { return $(this).val() == 'ASSIGNED'; }).length) {
+ $('#assigned-container').show();
+ }
var field = $(this).data('field');
$('#field-' + field + '.edit-hide').hide();
$('#field-' + field + '.edit-show').show();
@@ -776,6 +781,13 @@ $(function() {
}
});
+ // mark as assigned
+ $('#mark-as-assigned-btn')
+ .click(function(event) {
+ event.preventDefault();
+ $('#bug_status').val('ASSIGNED').change();
+ });
+
// reply button
$('.reply-btn')
.click(function(event) {