Function when "delete" comment

edited April 2008 in Vanilla 1.0 Help
Hi, I'm developing a function that I want to be executed each time that the "delete" link is clicked, but I don't know where to attach it. any idea? thx!

Comments

  • Are you talking about the show/hide comment button or the real delete comment from the CommentRemoval addon?
  • i'm talking about the show/hide role-based functionality but in the link says "delete" :P not the addon.
  • Then you will probably have to edit the comments.php file (copy the file and put it in your theme folder) and add an onclick to that tag and then create a js function to do what you want.
  • ok, thanks for the suggestion! I'll comment about the success, if I get any (I hope)
This discussion has been closed.