mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-26 08:00:02 +02:00
Merge branch 'forgejo' into upload_with_path_structure
Some checks failed
Integration tests for the release process / release-simulation (push) Has been cancelled
Some checks failed
Integration tests for the release process / release-simulation (push) Has been cancelled
This commit is contained in:
commit
a681ebad20
107 changed files with 6314 additions and 790 deletions
|
@ -631,9 +631,11 @@ export function initRepoIssueTitleEdit() {
|
|||
|
||||
const issueTitleInput = issueTitleEditor.querySelector('input');
|
||||
const oldTitle = issueTitleInput.getAttribute('data-old-title');
|
||||
const normalModeElements = [issueTitleDisplay, '#pull-desc-display', '#agit-label', '#editable-label'];
|
||||
issueTitleDisplay.querySelector('#issue-title-edit-show').addEventListener('click', () => {
|
||||
hideElem(issueTitleDisplay);
|
||||
hideElem('#pull-desc-display');
|
||||
for (const element of normalModeElements) {
|
||||
hideElem(element);
|
||||
}
|
||||
showElem(issueTitleEditor);
|
||||
showElem('#pull-desc-editor');
|
||||
if (!issueTitleInput.value.trim()) {
|
||||
|
@ -644,8 +646,9 @@ export function initRepoIssueTitleEdit() {
|
|||
issueTitleEditor.querySelector('.ui.cancel.button').addEventListener('click', () => {
|
||||
hideElem(issueTitleEditor);
|
||||
hideElem('#pull-desc-editor');
|
||||
showElem(issueTitleDisplay);
|
||||
showElem('#pull-desc-display');
|
||||
for (const element of normalModeElements) {
|
||||
showElem(element);
|
||||
}
|
||||
});
|
||||
|
||||
const pullDescEditor = document.querySelector('#pull-desc-editor'); // it may not exist for a merged PR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue