summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
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/template/en/default/bug_modal/edit.html.tmpl
parent236be0474b114ea15a57d61d3be5931a612fb155 (diff)
downloadbugzilla-09f53409bf172a3d6452d992e3afce7cd7879f12.tar.gz
bugzilla-09f53409bf172a3d6452d992e3afce7cd7879f12.tar.xz
Bug 1146787: "take" buttons missing in edit mode
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl7
1 files changed, 6 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 fa87066fd..095724e67 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -455,7 +455,7 @@
[% IF unassigned %]
<i>Unassigned</i>
[% IF bug.check_can_change_field("assigned_to", 0, 1) %]
- <button type="button" id="take-btn" class="minor">Take</button>
+ <button type="button" class="take-btn minor" data-field="assigned_to">Take</button>
[% END %]
[% ELSE %]
[% INCLUDE bug_modal/user.html.tmpl u=bug.assigned_to %]
@@ -465,6 +465,11 @@
field = bug_fields.assigned_to
field_type = constants.FIELD_TYPE_USER
hide_on_view = 1
+ action = {
+ class = "take-btn"
+ caption = "Take"
+ hidden = bug.assigned_to.id == user.id || !user.in_group("editbugs")
+ }
append_content = 1
default = bug.component_obj.default_assignee.login
%]