Hello, my website is plenty of duplicated posts in the shoutbox because of the delay between the moment when the user clicks the submit button and when the post is shown. So users may clic 2 or even 3 times before they see their posts.
Maybe if I could insert something like onclick="this.disabled=true;" it will prevent double post but when the post appears the submit should be enabled again..
Well, I'm just supposing.. I don't really know what I can do about this, but the problem is I want to prevent duplicate posts.
Thank you and sorry if there are english errors.
José A. Carvallo
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | shoutbox-duplicatepost.patch | 2.41 KB | schturdark |
Comments
Comment #1
schturdark commentedHi,
I have tried using the following code (based on blueprint theme) so that the button will be disabled when user submitted the button and a word "saving" appears until the shout box is refreshed. The file that I modify is the js file, shoutbox-form.js.
It is just a very crude implementation to prevent the duplicate post.
Regards,
Valent
Comment #2
disterics commentedPushing to next release.
Comment #3
disterics commentedThere is a fix in both 5.x and 6.x
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.