Keep alert close buttons from trying to submit forms