mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-01-31 00:47:30 +01:00
Fix Popup no closing bug
Fix wrong button (add) bug
This commit is contained in:
parent
8bf9df4419
commit
78e44b7704
@ -122,12 +122,13 @@ function CreatePublication(publication, connector){
|
|||||||
function DeleteTaskClick(){
|
function DeleteTaskClick(){
|
||||||
taskToDelete = tasks.filter(tTask => tTask.publication.internalId === toEditId)[0];
|
taskToDelete = tasks.filter(tTask => tTask.publication.internalId === toEditId)[0];
|
||||||
DeleteTask("DownloadNewChapters", taskToDelete.connectorName, toEditId);
|
DeleteTask("DownloadNewChapters", taskToDelete.connectorName, toEditId);
|
||||||
HideAddTaskPopup();
|
HidePublicationPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
function AddTaskClick(){
|
function AddTaskClick(){
|
||||||
CreateTask("DownloadNewChapters", selectRecurrence.value, connectorSelect.value, toEditId, "en")
|
CreateTask("DownloadNewChapters", selectRecurrence.value, connectorSelect.value, toEditId, "en")
|
||||||
HideAddTaskPopup();
|
HideAddTaskPopup();
|
||||||
|
HidePublicationPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
var slideIn = true;
|
var slideIn = true;
|
||||||
@ -201,7 +202,7 @@ GetTasks()
|
|||||||
//.then(json => console.log(json))
|
//.then(json => console.log(json))
|
||||||
.then(json => json.forEach(task => {
|
.then(json => json.forEach(task => {
|
||||||
var publication = CreatePublication(task.publication, task.connectorName);
|
var publication = CreatePublication(task.publication, task.connectorName);
|
||||||
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event));
|
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event, false));
|
||||||
tasksContent.appendChild(publication);
|
tasksContent.appendChild(publication);
|
||||||
tasks.push(task);
|
tasks.push(task);
|
||||||
}));
|
}));
|
||||||
@ -216,7 +217,7 @@ setInterval(() => {
|
|||||||
ResetContent();
|
ResetContent();
|
||||||
cTasks.forEach(task => {
|
cTasks.forEach(task => {
|
||||||
var publication = CreatePublication(task.publication, task.connectorName);
|
var publication = CreatePublication(task.publication, task.connectorName);
|
||||||
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event, true));
|
publication.addEventListener("click", (event) => ShowPublicationViewerWindow(task.publication.internalId, event, false));
|
||||||
tasksContent.appendChild(publication);
|
tasksContent.appendChild(publication);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user