[Plugin: Vote It Up] Bug: Multiple Clicks possible with Ajax Voter
-
Nice Plugin!
Found a bug (maybe it’s already known):
If you are using the Ajax Voting Function (I recognized it in the Ticker Skin, don’t know if its also in other skins) and voting as a guest, you can vote multiple times if you click multiple times before page reloads…
I solved it just with adding a Boolean variable which is set true after the first click:
var clicked = false; function vote(obj, votelinkobj, aftervote, postID ,userID, baseURL) { if (clicked == false) { currentobj = obj; voteobj = votelinkobj; aftervotetext = aftervote; var scripturl = baseURL+"/voteinterface.php?type=vote&tid=total&uid="+userID+"&pid="+postID+"&auth="+Math.random(); lg_AJAXrequest(scripturl); } clicked = true; }
can you solve this issue in general for the next version?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Vote It Up] Bug: Multiple Clicks possible with Ajax Voter’ is closed to new replies.