remove auto confirm on delete buttons
use the "confirm" class insteadforum-mod-deletion-message-dialog
parent
a55e4ad570
commit
532061f98e
|
@ -103,7 +103,6 @@ lichess.load.then(() => {
|
|||
|
||||
if (window.InfiniteScroll) window.InfiniteScroll('.infinite-scroll');
|
||||
|
||||
$('a.delete, input.delete').on('click', () => confirm('Delete?'));
|
||||
$('input.confirm, button.confirm').on('click', function (this: HTMLElement) {
|
||||
return confirm(this.title || 'Confirm this action?');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue