summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo/template/en/default
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-03-18 16:01:43 +0100
committerByron Jones <glob@mozilla.com>2014-03-18 16:01:43 +0100
commitc2e0716f1b27c95a51908f0e0a41c4e918165929 (patch)
treeab11ae611469032ca10ae2d53748a7f720f48b84 /extensions/Needinfo/template/en/default
parent013e8740fef579fa7ec6271d39224d91d509bd88 (diff)
downloadbugzilla-c2e0716f1b27c95a51908f0e0a41c4e918165929.tar.gz
bugzilla-c2e0716f1b27c95a51908f0e0a41c4e918165929.tar.xz
Bug 901599: changing the requestee of a pending needinfo flag should redirect the request rather than clearing it
Diffstat (limited to 'extensions/Needinfo/template/en/default')
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl18
1 files changed, 16 insertions, 2 deletions
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
index 60a1b0a1c..0755d449d 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -38,7 +38,7 @@
<td align="center">
<input type="checkbox" id="needinfo_override_[% flag.id FILTER html %]"
name="needinfo_override_[% flag.id FILTER html %]" value="1"
- [% "checked" IF flag.requestee || user.in_group("canconfirm") %]>
+ [% " checked" IF flag.requestee || user.in_group("canconfirm") %]>
</td>
<td>
<label for="needinfo_override_[% flag.id FILTER html %]">
@@ -71,6 +71,16 @@
<tr>
<td align="center">
<script>
+ function needinfo_init() {
+ needinfo_visibility();
+ [% FOREACH flag = needinfo_flags %]
+ YAHOO.util.Event.on('requestee-[% flag.id FILTER none %]', 'blur', function(e) {
+ YAHOO.util.Dom.get('needinfo_override_[% flag.id FILTER none %]').checked =
+ e.target.value == '[% flag.requestee.login FILTER js %]';
+ });
+ [% END %]
+ }
+
function needinfo_visibility() {
var role = YAHOO.util.Dom.get('needinfo_role').value;
if (role == 'other') {
@@ -91,6 +101,7 @@
YAHOO.util.Dom.get('needinfo_role_identity').innerHTML = identity;
}
}
+
function needinfo_focus() {
if (YAHOO.util.Dom.get('needinfo').checked
&& YAHOO.util.Dom.get('needinfo_role').value == 'other')
@@ -99,15 +110,18 @@
YAHOO.util.Dom.get('needinfo_from').select();
}
}
+
function needinfo_role_changed() {
YAHOO.util.Dom.get('needinfo').checked = true;
needinfo_visibility();
needinfo_focus();
}
+
function needinfo_other_changed() {
YAHOO.util.Dom.get('needinfo').checked = YAHOO.util.Dom.get('needinfo_from').value != '';
}
- YAHOO.util.Event.onDOMReady(needinfo_visibility);
+
+ YAHOO.util.Event.onDOMReady(needinfo_init);
</script>
<input type="checkbox" name="needinfo" value="1" id="needinfo" onchange="needinfo_focus()">
</td>