mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Fixed a smal error in the document generation button of the costum document creation section
This commit is contained in:
@@ -312,9 +312,10 @@ goBackBtn.addEventListener("click", () => {
|
|||||||
// dokumente speichern
|
// dokumente speichern
|
||||||
generateBtn.addEventListener("click", () => {
|
generateBtn.addEventListener("click", () => {
|
||||||
const name = docName.value.trim();
|
const name = docName.value.trim();
|
||||||
const content = prompt.value.trim();
|
const content = document.getElementById("prompt").value.trim();
|
||||||
if (!name || !content) {
|
if (!name || !content) {
|
||||||
result.textContent = "Bitte Dokumentname und Prompt ausfüllen.";
|
result.textContent = "Bitte Dokumentname und Prompt ausfüllen.";
|
||||||
|
console.log(name + " " + content);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
result.textContent = "";
|
result.textContent = "";
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
|||||||
Reference in New Issue
Block a user