mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
Fix lint err
This commit is contained in:
parent
4cd3734805
commit
25f947d94c
@ -20,8 +20,8 @@ function initRepoDiffReviewButton() {
|
||||
if (!counter) return;
|
||||
|
||||
function handleFormSubmit(form, textarea) {
|
||||
if (form.dataset.handlerAttached === 'true') return;
|
||||
form.dataset.handlerAttached = 'true';
|
||||
if (form.getAttribute('data-handler-attached') === 'true') return;
|
||||
form.setAttribute('data-handler-attached', 'true');
|
||||
form.addEventListener('submit', (event) => {
|
||||
if (textarea.value.trim() === '') {
|
||||
event.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user