0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 07:55:31 +02:00

fix js/ts linter errors

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-08-16 17:07:04 -04:00
parent 99e9d32d93
commit dc46eb7bd4
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export function initCommonGroup() {
return;
}
document.querySelector('.group.settings.options #group_name')?.addEventListener('input', function () {
document.querySelector('.group.settings.options #group_name')?.addEventListener('input', function (this: HTMLInputElement) {
const nameChanged = this.value.toLowerCase() !== this.getAttribute('data-group-name').toLowerCase();
toggleElem('#group-name-change-prompt', nameChanged);
});

View File

@ -4,7 +4,6 @@ import {fomanticQuery} from '../modules/fomantic/base.ts';
import {sanitizeRepoName} from './repo-common.ts';
const {appSubUrl} = window.config;
const $ = window.$;
function initRepoNewTemplateSearch(form: HTMLFormElement) {
const elSubmitButton = querySingleVisibleElem<HTMLInputElement>(form, '.ui.primary.button')!;
const elCreateRepoErrorMessage = form.querySelector('#create-repo-error-message')!;