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:
parent
437050430f
commit
423025b3fe
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue