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:
parent
99e9d32d93
commit
dc46eb7bd4
@ -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);
|
||||
});
|
||||
|
||||
@ -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')!;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user