Fix bug with submit event handler in jquery adapter