Quote:
Originally Posted by brandnew
This hack is messy. It includes a long string of javascript after each and every post in the thread. Why it has to be that? You can just put javascript in an external .js file, attach postid to the "Thank You" button in each post, and for every click, the postid is passed to the function.
Please clean this up. The vbulletin inline mod offers a good example to follow.
|
Last time I checked, I had to do it this way because AJAX uses a second function that i am unable to send a variable to. I will look into it again since my knowledge for javascript has been increasing the past few weeks.