From b16601377018a040c08f16695047a8b4dcf9ea86 Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 9 Jun 2023 11:12:43 +0200 Subject: [PATCH] resolves #13 Website: Clear previous results --- Website/interaction.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Website/interaction.js b/Website/interaction.js index 8aa47ca..22ffc84 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -63,7 +63,7 @@ createMonitorTaskButton.addEventListener("click", () => { createDownloadChapterTaskButton.addEventListener("click", () => { HidePublicationPopup(); OpenDownloadChapterTaskPopup(); -}) +}); publicationTaskStart.addEventListener("click", () => StartTaskClick()); settingApiUri.addEventListener("keypress", (event) => { if(event.key === "Enter"){ @@ -156,6 +156,8 @@ function AddMonitorTask(){ } function OpenDownloadChapterTaskPopup(){ + selectedChapters.value = ""; + chapterOutput.replaceChildren(); createDownloadChaptersTask.style.display = "block"; GetChapters(toEditId, connectorSelect.value, "en").then((json) => { var i = 0; @@ -261,6 +263,7 @@ function HidePublicationPopup(){ function ShowNewTaskWindow(){ selectPublication.replaceChildren(); + searchPublicationQuery.value = ""; selectPublicationPopup.style.display = "flex"; }