2
0

resolves #13 Website: Clear previous results

This commit is contained in:
glax 2023-06-09 11:12:43 +02:00
parent 02fe849046
commit b166013770

View File

@ -63,7 +63,7 @@ createMonitorTaskButton.addEventListener("click", () => {
createDownloadChapterTaskButton.addEventListener("click", () => { createDownloadChapterTaskButton.addEventListener("click", () => {
HidePublicationPopup(); HidePublicationPopup();
OpenDownloadChapterTaskPopup(); OpenDownloadChapterTaskPopup();
}) });
publicationTaskStart.addEventListener("click", () => StartTaskClick()); publicationTaskStart.addEventListener("click", () => StartTaskClick());
settingApiUri.addEventListener("keypress", (event) => { settingApiUri.addEventListener("keypress", (event) => {
if(event.key === "Enter"){ if(event.key === "Enter"){
@ -156,6 +156,8 @@ function AddMonitorTask(){
} }
function OpenDownloadChapterTaskPopup(){ function OpenDownloadChapterTaskPopup(){
selectedChapters.value = "";
chapterOutput.replaceChildren();
createDownloadChaptersTask.style.display = "block"; createDownloadChaptersTask.style.display = "block";
GetChapters(toEditId, connectorSelect.value, "en").then((json) => { GetChapters(toEditId, connectorSelect.value, "en").then((json) => {
var i = 0; var i = 0;
@ -261,6 +263,7 @@ function HidePublicationPopup(){
function ShowNewTaskWindow(){ function ShowNewTaskWindow(){
selectPublication.replaceChildren(); selectPublication.replaceChildren();
searchPublicationQuery.value = "";
selectPublicationPopup.style.display = "flex"; selectPublicationPopup.style.display = "flex";
} }