javascript: Do not bind the button click event

Catching form submit events is sufficient as catching the button click
event is not an option due to circumventing the browser's native form
validation logic otherwise.

refs #8349
This commit is contained in:
Johannes Meyer 2015-02-05 13:21:03 +01:00
parent 437050430f
commit 423025b3fe
1 changed files with 0 additions and 2 deletions

View File

@ -118,8 +118,6 @@
// Select a table row // Select a table row
$(document).on('click', 'table.multiselect tr[href]', { self: this }, this.rowSelected); $(document).on('click', 'table.multiselect tr[href]', { self: this }, this.rowSelected);
$(document).on('click', 'button', { self: this }, this.submitForm);
// We catch all form submit events // We catch all form submit events
$(document).on('submit', 'form', { self: this }, this.submitForm); $(document).on('submit', 'form', { self: this }, this.submitForm);