Triggers custom events on ajax beforeSend and complete
Prevents the user from submitting the form multiple times when syncing is in process