Cleanup special list classes.

This commit is contained in:
Patrick Jentsch 2019-08-28 17:31:09 +02:00
parent 52bd8ec94e
commit 98de581132
2 changed files with 18 additions and 26 deletions

View File

@ -6,7 +6,15 @@ class CorpusList extends List {
init() {
this.createCorpusElements(corpora);
var corpus;
for (corpus of corpora) {
this.list.appendChild(this.createCorpusElement(corpus));
}
this.reIndex();
this.update();
List.updatePagination(this);
}
@ -38,18 +46,6 @@ class CorpusList extends List {
}
createCorpusElements(corpora) {
var corpus;
for (corpus of corpora) {
this.list.appendChild(this.createCorpusElement(corpus));
}
this.reIndex();
this.update();
List.updatePagination(this);
}
/*
corporaUpdateHandler(delta) {
var corpusElement, key, listItem;

View File

@ -6,7 +6,15 @@ class JobList extends List {
init() {
this.createJobElements(jobs);
var job;
for (job of jobs) {
this.list.appendChild(this.createJobElement(job));
}
this.reIndex();
this.update();
List.updatePagination(this);
}
@ -41,18 +49,6 @@ class JobList extends List {
}
createJobElements(jobs) {
var job;
for (job of jobs) {
this.list.appendChild(this.createJobElement(job));
}
this.reIndex();
this.update();
List.updatePagination(this);
}
/*
jobsUpdateHandler(delta) {
var jobElement, jobStatusElement, key, listItem;