diff options
author | 2011-08-09 18:03:23 -0400 | |
---|---|---|
committer | 2011-08-09 18:03:23 -0400 | |
commit | 4b113460e54775cbd3e5e412ad37b9ba7ab66edc (patch) | |
tree | 5acc4fc6552f9a343c28d70ce663af70359a57b9 /js | |
parent | Bug 636416: Use the standard value-controller javascript to control the (diff) | |
download | bugzilla-4b113460e54775cbd3e5e412ad37b9ba7ab66edc.tar.gz bugzilla-4b113460e54775cbd3e5e412ad37b9ba7ab66edc.tar.bz2 bugzilla-4b113460e54775cbd3e5e412ad37b9ba7ab66edc.zip |
Bug 585440 - Allow disabled accounts to turn off all bugmail
r/a=mkanat
Diffstat (limited to 'js')
-rw-r--r-- | js/field.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/field.js b/js/field.js index ea1769bd1..69f71e526 100644 --- a/js/field.js +++ b/js/field.js @@ -897,3 +897,16 @@ YAHOO.bugzilla.keywordAutocomplete = { }); } }; + +/** + * Set the disable email checkbox to true if the user has disabled text + */ +function userDisabledTextOnChange(disabledtext) { + var disable_mail = document.getElementById('disable_mail'); + if (disabledtext.value === "" && !disable_mail_manually_set) { + disable_mail.checked = false; + } + if (disabledtext.value !== "" && !disable_mail_manually_set) { + disable_mail.checked = true; + } +} |