Prevents a link or button from executing an action multiple times when multiclicking. The button remains unusable after the first click, but it can be made usable again after a number of milliseconds or by calling an ajax reload for the weblock.
Managed the situation when the onclick of the button is empty.