[FRONTEND] fix javascript linting errors
This commit is contained in:
parent
9560492a84
commit
c4a92ec9da
2 changed files with 3 additions and 3 deletions
|
@ -2,14 +2,14 @@ import {hideElem, showElem} from '../utils/dom.js';
|
|||
import {initComboMarkdownEditor} from './comp/ComboMarkdownEditor.js';
|
||||
|
||||
export function initRepoRelease() {
|
||||
[...document.querySelectorAll('.remove-rel-attach')].forEach((el) => {
|
||||
for (const el of document.querySelectorAll('.remove-rel-attach')) {
|
||||
el.addEventListener('click', (e) => {
|
||||
const uuid = e.target.getAttribute('data-uuid');
|
||||
const id = e.target.getAttribute('data-id');
|
||||
document.querySelector(`input[name='attachment-del-${uuid}']`).value = 'true';
|
||||
hideElem(`#attachment-${id}`);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function initRepoReleaseNew() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue