Closed Bug 201083 Opened 21 years ago Closed 21 years ago

email prefs: need uncheck all option

Categories

(Bugzilla :: User Interface, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 186689

People

(Reporter: bobbyt, Assigned: myk)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312

Have to uncheck about 50 boxes manually just to be notification free. 

Reproducible: Always

Steps to Reproduce:
1.
2.
3.




Solution:
Add javascript to check all/uncheck all boxes in each column with one click
Add to page header:
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function checkAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = true ;
}

function uncheckAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = false ;
}
//  End -->
</script>
--
on the page add this above each column:

<input type="button" name="CheckAll" value="Check All"
onClick="checkAll(document.myform.emailReporterComments)">
<input type="button" name="UnCheckAll" value="Uncheck All"
onClick="uncheckAll(document.myform.emailReporterComments)">

<input type="button" name="CheckAll" value="Check All"
onClick="checkAll(document.myform.emailOwnerComments)">
<input type="button" name="UnCheckAll" value="Uncheck All"
onClick="uncheckAll(document.myform.emailOwnerComments)">

<input type="button" name="CheckAll" value="Check All"
onClick="checkAll(document.myform.emailQAcontactComments)">
<input type="button" name="UnCheckAll" value="Uncheck All"
onClick="uncheckAll(document.myform.emailQAcontactComments)">

<input type="button" name="CheckAll" value="Check All"
onClick="checkAll(document.myform.emailCClistComments)">
<input type="button" name="UnCheckAll" value="Uncheck All"
onClick="uncheckAll(document.myform.emailCClistComments)">

<input type="button" name="CheckAll" value="Check All"
onClick="checkAll(document.myform.emailVoterComments)">
<input type="button" name="UnCheckAll" value="Uncheck All"
onClick="uncheckAll(document.myform.emailVoterComments)">
---
Change <form method="post" action="userprefs.cgi">
to <form method="post" name="myform" action="userprefs.cgi">
Voila.  
Some java master out there maybe able to combine that to clear all fields with 1
click rather than a per column basis.
Kicking over to UI...
Assignee: preed → myk
Component: Email Notifications → User Interface
Summary: need uncheck all option → email prefs: need uncheck all option
Whiteboard: dupeme
This has been fixed already on the tip.

*** This bug has been marked as a duplicate of 186689 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
QA Contact: matty_is_a_geek → default-qa
Whiteboard: dupeme
You need to log in before you can comment on or make changes to this bug.