I have 48 pages of trackbacks in my approval queue right now, all of them SPAM about "texas hold'em".
With that many trackbacks, I want to click "select all" / "DELETE" rather than manually select each entry and then click DELETE.
Unfortunately the code in the trackback.module is obtuse enough it's not clear how to insert the required javascript, or I'd have a suggested fix in hand.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | common.js | 247 bytes | Ian Ward |
| #5 | trackback_selectall_0.patch | 2.76 KB | Ian Ward |
| #4 | trackback_selectall.patch | 2.76 KB | Ian Ward |
| #3 | trackback_selectall_fix.txt | 1009 bytes | Ian Ward |
Comments
Comment #1
ankur commentedI'd be interested in what the java script should look like and where it should be inserted...
If the look of the JavaScript changes with changes in the trackback settings, I'd be interested in what it should look like for each combination of settings.
Anyone willing to supply the JavaScript?
-Ankur
Comment #2
Ian Ward commentedWhat about using the same script and usage for the civicspace contact_manager module on /contact_manager?
Ian
Comment #3
Ian Ward commentedI have this working, attached in .txt is what I did...sorry no patch, but it's pretty simple and the javascript was not letting me write the explanation directly in here.
Comment #4
Ian Ward commentedHere is the patch
Comment #5
Ian Ward commentedSorry! Patch was backwards, here it is!
Comment #6
Ian Ward commentedYou also need to add this javascript file into /modules/trackback/ directory
Comment #7
vwegert commentedI had to modify the patches quite a bit to adapt them to the new forms API. As my module contains some additional fixes, I can't simply provide a diff that works out-of-the-box. However, if there is someone maintaining this module and willing to take a look at the code, I'd be happy to contribute.
Comment #8
handelaar commentedComment #9
(not verified) commented