diff options
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; + } +} |