I managed to get an alert message that says
"Please wait" when the an impatient user tries to click on the publish button more than once.
Paste the following on the
item-post page:
<script type="text/javascript">
function clickStopper(e)
{
alert("Please wait"); // notify user to wait since there is an ongoing process
e.preventDefault();
}
</script>
on the same page look for the submit button. Should be something like
<button type="submit"><?php echo osc_esc_html(__('Publish', 'your theme')); ?></button>
Then add the following code to it:
onclick="this.addEventListener('click', clickStopper, false);"
so you should have something like the following:
<button type="submit" onclick="this.addEventListener('click', clickStopper, false);">
<?php echo osc_esc_html(__('Publish', 'your theme')); ?>
</button>
Got code from
http://www.the-art-of-web.com/javascript/doublesubmit/. Credit to the owner
It works for me.
Truth being that i would have preferred the publish button to be disabled, but i think the above can be used for the mean time.