mirror of
https://github.com/go-gitea/gitea
synced 2024-11-09 06:17:03 +01:00
Change .style.display to showElem and hideElem
This commit is contained in:
parent
3cf7472410
commit
6d29c32bd3
@ -110,12 +110,14 @@ export function initRepoEditor() {
|
||||
warningDiv = document.createElement('div');
|
||||
warningDiv.classList.add('ui', 'warning', 'message', 'flash-message', 'flash-warning');
|
||||
warningDiv.innerHTML = '<p>Parent directory contains leading or trailing whitespace.</p><p>These whitespaces will be removed.</p>';
|
||||
// Add display 'block' because display is set to 'none' in formantic\build\semantic.css
|
||||
warningDiv.style.display = 'block';
|
||||
const inputContainer = document.querySelector('.repo-editor-header');
|
||||
inputContainer.insertAdjacentElement('beforebegin', warningDiv);
|
||||
}
|
||||
warningDiv.style.display = 'block';
|
||||
showElem(warningDiv);
|
||||
} else if (warningDiv) {
|
||||
warningDiv.style.display = 'none';
|
||||
hideElem(warningDiv);
|
||||
}
|
||||
}
|
||||
joinTreePath();
|
||||
|
Loading…
Reference in New Issue
Block a user