Skip to content

Commit 0b27261

Browse files
author
zsbahtiar
committed
revert
1 parent 3faea22 commit 0b27261

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/js/features/common-button.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export function initGlobalDeleteButton(): void {
1717
// Some model/form elements will be filled by `data-id` / `data-name` / `data-data-xxx` attributes.
1818
// If there is a form defined by `data-form`, then the form will be submitted as-is (without any modification).
1919
// If there is no form, then the data will be posted to `data-url`.
20-
// TODO: do not use this method in new code. `show-modal` / `link-action(data-modal-confirm)` does far better than this.
21-
// FIXME: all legacy `delete-button` should be refactored to use `show-modal` or `link-action`
20+
// TODO: it's not encouraged to use this method. `show-modal` does far better than this.
2221
for (const btn of document.querySelectorAll<HTMLElement>('.delete-button')) {
2322
btn.addEventListener('click', (e) => {
2423
e.preventDefault();

0 commit comments

Comments
 (0)