debbies New Member
 member is offline
Joined: Jan 2007 Posts: 1 Karma: 0 |  | Select/Deselect All in Edit Entry pages « Thread Started on Jan 14, 2007, 4:22pm » | |
Not so much a mod and not at all that I wrote it.
I found this check/uncheck all script at http://javascript.internet.com and have used it on other forms. We got hit with a ton of spam (before upgrading to newer version) and I wanted a quick way to select all comment entries to delete them all. Hope this helps someone else out too.
gm-library.cgi:
BEFORE Line 8944 INSERT: <script type="text/javascript"> <!-- /* This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Created by: Hillel Aftel :: equazcion (at) gmail.com */
function checkAll(checkname, exby) { for (i = 0; i < checkname.length; i++) checkname[i].checked = exby.checked? true:false } // --> </script>
BEFORE Line 9073 INSERT: println('<input type="checkbox" name="all" onClick="checkAll(document.editentry.multideletecommentselection,this)">Check/Uncheck All<br>');
| |
|
coldstone Global Moderator
     member is offline
![[avatar] [avatar]](http://xergs.doubtfulguest.net/images/avatar.png)
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Aug 2006 Posts: 816 Karma: 18 |  | Re: Select/Deselect All in Edit Entry pages « Reply #1 on Jan 16, 2007, 11:35am » | |
Nice, this is excellent. I hate checking all those boxes also.
| |
|
petefinnigan Global Moderator
     member is offline
![[homepage] [homepage]](http://images.proboards.com/buttons/www_sm.gif) Joined: Aug 2006 Gender: Male  Posts: 219 Location: York, England Karma: 18 |  | Re: Select/Deselect All in Edit Entry pages « Reply #2 on Jan 18, 2007, 2:05pm » | |
i thought the same, looks very useful.
cheers
Pete
|
|
|