File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ export function initGlobalDeleteButton(): void {
17
17
// Some model/form elements will be filled by `data-id` / `data-name` / `data-data-xxx` attributes.
18
18
// If there is a form defined by `data-form`, then the form will be submitted as-is (without any modification).
19
19
// If there is no form, then the data will be posted to `data-url`.
20
- // TODO: it's not encouraged to use this method. `show-modal` does far better than this.
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`
21
22
for ( const btn of document . querySelectorAll < HTMLElement > ( '.delete-button' ) ) {
22
23
btn . addEventListener ( 'click' , ( e ) => {
23
24
e . preventDefault ( ) ;
You can’t perform that action at this time.
0 commit comments