Hi All,

I had a requirement to select the first 200 items in the quarantine
for easy "Delete Checked". The reason is that I have to double check
the quarantined emails and release any False Positives. Additionally,
when new spam gets caught, clicking on "Delete All" would just refresh
the spam listing and FPs may appear in the list.

So this small javascript code does the selection for me. Ive placed it
next to both the "Delete Checked" buttons. I hope others find it
useful too.

# diff  templates/nav_quarantine.orig.html templates/nav_quarantine.html

45a46,47
> <a href="#" onClick='for(j=0; j<200;j++) { if ( 
> document.forms[1].elements[j].type == "checkbox") { 
> document.forms[1].elements[j].checked = true; } } return false'>Select 
> 200.</a>
> &nbsp;
66a69,70
> <a href="#" onClick='for(j=0; j<200;j++) { if ( 
> document.forms[1].elements[j].type == "checkbox") { 
> document.forms[1].elements[j].checked = true; } } return false'>Select 
> 200.</a>
> &nbsp;


The reason why I dont do a "Select All" is because if there are more
than 500 or so, the HTML POST takes way too long. And most of the FPs
appear in the first 200 anyway.


yk.

Reply via email to