Prevent Form From Submitting

On apps with noJS fallbacks, clicking the ok or cancel will cause the form to submit. Adding in a prevent default action will stop this.