Bug 186689: Should be able to set all/clear all email options in user preferences with one click.

r= gerv, a= justdave


git-svn-id: svn://10.0.0.236/trunk@138229 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
justdave%syndicomm.com
2003-02-22 20:26:52 +00:00
parent f3b7486e41
commit 7b8472e0bb
2 changed files with 21 additions and 1 deletions

View File

@@ -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>

View File

@@ -98,7 +98,7 @@
<h3>[% current_tab.description %]</h3>
<form method="post" action="userprefs.cgi">
<form name="userprefsform" method="post" action="userprefs.cgi">
<input type="hidden" name="tab" value="[% current_tab.name %]">
[%# See bug 160710 for why this is done this way %]