summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal
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
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')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl7
-rw-r--r--extensions/BugModal/web/bug_modal.css2
-rw-r--r--extensions/BugModal/web/bug_modal.js12
3 files changed, 20 insertions, 1 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
index 35621f544..b73761cff 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -473,6 +473,13 @@
inline = 1
edit_only = 1
%]
+ [% UNLESS prefix %]
+ <div id="assigned-container" style="display:none">
+ <button type="button" class="minor" id="mark-as-assigned-btn">
+ Mark as Assigned
+ </button>
+ </div>
+ [% END %]
[% IF bug.choices.resolution.only("name", "DUPLICATE").size %]
<div id="[% prefix FILTER none %]duplicate-container">
of
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) {