Sync with Forgejo

This commit is contained in:
Otto Richter 2025-03-06 23:26:35 +01:00
commit cf868695f5
50 changed files with 762 additions and 254 deletions

View file

@ -32,6 +32,7 @@ function initTagNameEditor() {
const newTagHelperText = el.getAttribute('data-tag-helper-new');
const existingTagHelperText = el.getAttribute('data-tag-helper-existing');
let previousTag = '';
document.getElementById('tag-name').addEventListener('keyup', (e) => {
const value = e.target.value;
const tagHelper = document.getElementById('tag-helper');
@ -45,7 +46,10 @@ function initTagNameEditor() {
}
const title_input = document.getElementById('release-title');
title_input.placeholder = value;
if (!title_input.value || previousTag === title_input.value) {
title_input.value = value;
}
previousTag = value;
});
}