Compare commits
No commits in common. "135aca08ab42ffce38a6d72e0fed843d8f2c3b0f" and "eb13e6e37d9da690aff8c562150f53392e0f58ba" have entirely different histories.
135aca08ab
...
eb13e6e37d
@ -113,19 +113,6 @@ function ResetContent(){
|
|||||||
add.appendChild(plus);
|
add.appendChild(plus);
|
||||||
add.addEventListener("click", () => ShowNewMangaSearch());
|
add.addEventListener("click", () => ShowNewMangaSearch());
|
||||||
tasksContent.appendChild(add);
|
tasksContent.appendChild(add);
|
||||||
|
|
||||||
//Populate with the monitored mangas
|
|
||||||
GetMonitorJobs().then((json) => {
|
|
||||||
//console.log(json);
|
|
||||||
json.forEach(job => {
|
|
||||||
var mangaView = CreateManga(job.manga, job.mangaConnector.name);
|
|
||||||
mangaView.addEventListener("click", (event) => {
|
|
||||||
ShowMangaWindow(job, job.manga, event, false);
|
|
||||||
});
|
|
||||||
tasksContent.appendChild(mangaView);
|
|
||||||
});
|
|
||||||
monitoringJobsCount = json.length;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function ShowNewMangaSearch(){
|
function ShowNewMangaSearch(){
|
||||||
@ -185,7 +172,6 @@ createMonitorJobButton.addEventListener("click", () => {
|
|||||||
CreateMonitorJob(newMangaConnector.value, selectedManga.internalId, newMangaTranslatedLanguage.value);
|
CreateMonitorJob(newMangaConnector.value, selectedManga.internalId, newMangaTranslatedLanguage.value);
|
||||||
UpdateJobs();
|
UpdateJobs();
|
||||||
mangaViewerPopup.style.display = "none";
|
mangaViewerPopup.style.display = "none";
|
||||||
ResetContent();
|
|
||||||
});
|
});
|
||||||
startJobButton.addEventListener("click", () => {
|
startJobButton.addEventListener("click", () => {
|
||||||
StartJob(selectedJob.id);
|
StartJob(selectedJob.id);
|
||||||
@ -199,7 +185,6 @@ deleteJobButton.addEventListener("click", () => {
|
|||||||
RemoveJob(selectedJob.id);
|
RemoveJob(selectedJob.id);
|
||||||
UpdateJobs();
|
UpdateJobs();
|
||||||
mangaViewerPopup.style.display = "none";
|
mangaViewerPopup.style.display = "none";
|
||||||
ResetContent();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function ShowMangaWindow(job, manga, event, add){
|
function ShowMangaWindow(job, manga, event, add){
|
||||||
@ -424,7 +409,6 @@ function utf8_to_b64(str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function UpdateJobs(){
|
function UpdateJobs(){
|
||||||
|
|
||||||
GetMonitorJobs().then((json) => {
|
GetMonitorJobs().then((json) => {
|
||||||
if(monitoringJobsCount != json.length){
|
if(monitoringJobsCount != json.length){
|
||||||
ResetContent();
|
ResetContent();
|
||||||
@ -439,8 +423,6 @@ function UpdateJobs(){
|
|||||||
monitoringJobsCount = json.length;
|
monitoringJobsCount = json.length;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//Get the jobs that are waiting in the queue
|
|
||||||
GetWaitingJobs().then((json) => {
|
GetWaitingJobs().then((json) => {
|
||||||
jobsQueuedTag.innerText = json.length;
|
jobsQueuedTag.innerText = json.length;
|
||||||
|
|
||||||
@ -461,7 +443,6 @@ function UpdateJobs(){
|
|||||||
jobStatusWaiting.removeChild(child);
|
jobStatusWaiting.removeChild(child);
|
||||||
});
|
});
|
||||||
|
|
||||||
//Get currently running jobs
|
|
||||||
GetRunningJobs().then((json) => {
|
GetRunningJobs().then((json) => {
|
||||||
jobsRunningTag.innerText = json.length;
|
jobsRunningTag.innerText = json.length;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user