summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-08-10 00:03:23 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-08-10 00:03:23 +0200
commit4b113460e54775cbd3e5e412ad37b9ba7ab66edc (patch)
tree5acc4fc6552f9a343c28d70ce663af70359a57b9 /js
parent80c6d150b42ae5d9ba7464c5e20023cc90388259 (diff)
downloadbugzilla-4b113460e54775cbd3e5e412ad37b9ba7ab66edc.tar.gz
bugzilla-4b113460e54775cbd3e5e412ad37b9ba7ab66edc.tar.xz
Bug 585440 - Allow disabled accounts to turn off all bugmail
r/a=mkanat
Diffstat (limited to 'js')
-rw-r--r--js/field.js13
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;
+ }
+}