mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Cleanup special list classes.
This commit is contained in:
		@@ -6,7 +6,15 @@ class CorpusList extends List {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  init() {
 | 
					  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) {
 | 
					  corporaUpdateHandler(delta) {
 | 
				
			||||||
    var corpusElement, key, listItem;
 | 
					    var corpusElement, key, listItem;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,15 @@ class JobList extends List {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  init() {
 | 
					  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) {
 | 
					  jobsUpdateHandler(delta) {
 | 
				
			||||||
    var jobElement, jobStatusElement, key, listItem;
 | 
					    var jobElement, jobStatusElement, key, listItem;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user