summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo/template/en/default
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-09-18 07:09:28 +0200
committerByron Jones <bjones@mozilla.com>2013-09-18 07:09:28 +0200
commit71fec1ecba98f708e733aa26ed051b1c12a60029 (patch)
tree281af7b35f5ec13018f6943cc0d7144a472c7fe0 /extensions/Needinfo/template/en/default
parentbe947b49f2746fb3c7b8aaf802aa6a198f820815 (diff)
downloadbugzilla-71fec1ecba98f708e733aa26ed051b1c12a60029.tar.gz
bugzilla-71fec1ecba98f708e733aa26ed051b1c12a60029.tar.xz
Bug 917577: needinfo? to reporter or assignee should show from whom it's going to needinfo?
Diffstat (limited to 'extensions/Needinfo/template/en/default')
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
index 6f6d5a93b..6458efc55 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -63,12 +63,23 @@
<td align="center">
<script>
function needinfo_visibility() {
- if (YAHOO.util.Dom.get('needinfo_role').value == 'other') {
+ var role = YAHOO.util.Dom.get('needinfo_role').value;
+ if (role == 'other') {
YAHOO.util.Dom.removeClass('needinfo_from_container', 'bz_default_hidden');
YAHOO.util.Dom.get('needinfo_from').disabled = false;
+ YAHOO.util.Dom.get('needinfo_role_identity').innerHTML = '';
} else {
YAHOO.util.Dom.addClass('needinfo_from_container', 'bz_default_hidden');
YAHOO.util.Dom.get('needinfo_from').disabled = true;
+ var identity = '';
+ if (role == 'reporter') {
+ identity = '[% bug.reporter.identity FILTER js %]';
+ } else if (role == 'assigned_to') {
+ identity = '[% bug.assigned_to.identity FILTER js %]';
+ } else if (role == 'qa_contact') {
+ identity = '[% bug.qa_contact.identity FILTER js %]';
+ }
+ YAHOO.util.Dom.get('needinfo_role_identity').innerHTML = identity;
}
}
function needinfo_focus() {
@@ -113,6 +124,7 @@
field_title => "Enter one or more comma separated users to request more information from"
%]
</span>
+ <span id="needinfo_role_identity"></span>
</td>
</tr>
[% END %]