the javascript is extremely simple.
The alert message var is declared in the header as "submitClicked"
submitPost() is the JavaScript that triggers display of alert message.
clearSubmit() is set to 0 when newpost, newreply, showflat pages are first loaded, and it sets submit_clicked() to 0.
clearSubmit() JS is simply -
function clearSubmit() {
submit_clicked = 0;
}
submitPost() is triggered only when the "Post Reply" or "Post New Thread" button is clicked.
submitPost() JS is simply -
function submitPost() {
if (submit_clicked == "1") {
return alert(submitClicked);
}
submit_clicked = 1;
document.replier.submit();
}
Upon first click, the first section of the script is skipped when its initially run because submit_clicked set to 0 by clearSubmit(). The second part is run and the post is submitted for entry in to the database. submit_clicked is also set to 1, which will be processed with the alert when a second click happens.
thats all it is.
What browser are you using, and is it up to date?
JavaScript is a user-side scripting language. Are you running your site through a pre-caching DNS which is not correctly letting the user's browser handle their own JavaScript operations?
Is your server/database slow between loading pages?