summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/users/edit.html.tmpl
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-27 06:19:17 +0200
committerByron Jones <glob@mozilla.com>2015-07-27 06:19:17 +0200
commita8ef3e105b01d4a7f765edbe53b7af53ed179020 (patch)
treecf9340948a7944b6d0755f2de514d7c3a4936882 /template/en/default/admin/users/edit.html.tmpl
parent1e3288184f015700e109ead8e21c1383152e340b (diff)
downloadbugzilla-a8ef3e105b01d4a7f765edbe53b7af53ed179020.tar.gz
bugzilla-a8ef3e105b01d4a7f765edbe53b7af53ed179020.tar.xz
Bug 1186788 - disabling an account should always disable bugmail
Diffstat (limited to 'template/en/default/admin/users/edit.html.tmpl')
-rw-r--r--template/en/default/admin/users/edit.html.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/template/en/default/admin/users/edit.html.tmpl b/template/en/default/admin/users/edit.html.tmpl
index 8eced20f7..a5ab5cf03 100644
--- a/template/en/default/admin/users/edit.html.tmpl
+++ b/template/en/default/admin/users/edit.html.tmpl
@@ -26,9 +26,25 @@
[% title = BLOCK %]Edit user [% otheruser.identity FILTER html %][% END %]
+[% js = BLOCK %]
+$(function() {
+ $('#disabledtext')
+ .keyup(function() {
+ if ($(this).val().trim() !== '') {
+ $('#disable_mail').prop('checked', true).prop('disabled', true);
+ }
+ else {
+ $('#disable_mail').prop('disabled', false);
+ }
+ })
+ .keyup();
+});
+[% END %]
+
[% PROCESS global/header.html.tmpl
title = title
message = message
+ javascript = js
style_urls = ['skins/standard/admin.css', 'skins/standard/editusers.css']
doc_section = "useradmin.html#modifyusers"
%]