diff options
author | justdave%syndicomm.com <> | 2003-02-23 05:26:51 +0100 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-02-23 05:26:51 +0100 |
commit | 9fc47ebee67937f2b309494457784d6ee8db9cfd (patch) | |
tree | ea8f1281a8bb753c57bf8e2f8ca2f0e589c06130 /template/en/default/account/prefs/email.html.tmpl | |
parent | ba6bd7a19d9a224fd328871a9669303197a98733 (diff) | |
download | bugzilla-9fc47ebee67937f2b309494457784d6ee8db9cfd.tar.gz bugzilla-9fc47ebee67937f2b309494457784d6ee8db9cfd.tar.xz |
Bug 186689: Should be able to set all/clear all email options in user preferences with one click.
r= gerv, a= justdave
Diffstat (limited to 'template/en/default/account/prefs/email.html.tmpl')
-rw-r--r-- | template/en/default/account/prefs/email.html.tmpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl index 5d73a357b..8bbb62dfc 100644 --- a/template/en/default/account/prefs/email.html.tmpl +++ b/template/en/default/account/prefs/email.html.tmpl @@ -108,7 +108,27 @@ </td> </tr> </table> +<noscript>If you had Javascript active, you could toggle all of these with one click.<br></noscript> +<script type="text/javascript"> +<!-- +function SetCheckboxes(setting) { + for (var count = 0; count < document.userprefsform.elements.length; count++) { + var theinput = document.userprefsform.elements[count]; + if (theinput.type == "checkbox") { + if (theinput.name == "ExcludeSelf") { + theinput.checked = false; + } + else { + theinput.checked = setting; + } + } + } +} +document.write('<input type="button" value="Enable All Mail" onclick="SetCheckboxes(true); return false;">\n'); +document.write('<input type="button" value="Disable All Mail" onclick="SetCheckboxes(false); return false;">\n'); +// --> +</script> <hr> <b>Field/recipient specific options:</b> <br> |