mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-17 14:00:01 +02:00
Sync with Forgejo
This commit is contained in:
commit
cf868695f5
50 changed files with 762 additions and 254 deletions
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue