Use enter key to confirm and remove confirm button
aaaronfeng opened this issue · 1 comments
aaaronfeng commented
websitecareio commented
What i would do is, adding a hidden class to the confirm button ( in the buttons config part) and then edit the delete function to mimic the confirm.
Try to edit theese lines:
$table.on('click', 'button.tabledit-confirm-button', function(event) {
to
$table.on('click', 'button.tabledit-delete-button', function(event) {
And the current:
$table.on('click', 'button.tabledit-delete-button', function(event) {
to $table.on('click', 'button.tabledit-delete-button_old', function(event) {
I think you will get what you want by doing this.
PLEASE BACKUP FIRST