summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/users/edit.html.tmpl
diff options
context:
space:
mode:
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"
%]