summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web
diff options
context:
space:
mode:
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) {