mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-18 15:23:10 +01:00
Similar to GitHub, release notes can now be generated automatically. The generator is server-side and gathers the merged PRs and contributors and returns the corresponding Markdown text. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
14 lines
543 B
TypeScript
14 lines
543 B
TypeScript
import {linkLabelAndInput} from './base.ts';
|
|
|
|
export function initAriaFormFieldPatch() {
|
|
// link the label and the input element so it's clickable and accessible
|
|
for (const el of document.querySelectorAll('.ui.form .field')) {
|
|
if (el.hasAttribute('data-field-patched')) continue;
|
|
const label = el.querySelector(':scope > label');
|
|
const input = el.querySelector(':scope > input, :scope > select');
|
|
if (!label || !input) continue;
|
|
linkLabelAndInput(label, input);
|
|
el.setAttribute('data-field-patched', 'true');
|
|
}
|
|
}
|