mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
		@@ -1,11 +1,11 @@
 | 
				
			|||||||
class JobList extends List {
 | 
					class JobList extends List {
 | 
				
			||||||
  constructor(idOrElement, options) {
 | 
					  constructor(idOrElement, subscriberList, options) {
 | 
				
			||||||
    super(idOrElement, options);
 | 
					    super(idOrElement, options);
 | 
				
			||||||
    jobsSubscribers.push(this);
 | 
					    subscriberList.push(this);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  _init() {
 | 
					  _init(jobs) {
 | 
				
			||||||
    for (let [id, job] of Object.entries(jobs)) {
 | 
					    for (let [id, job] of Object.entries(jobs)) {
 | 
				
			||||||
      this.addJob(job);
 | 
					      this.addJob(job);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -39,7 +39,7 @@
 | 
				
			|||||||
        var subscriber;
 | 
					        var subscriber;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        jobs = JSON.parse(msg);
 | 
					        jobs = JSON.parse(msg);
 | 
				
			||||||
        for (subscriber of jobsSubscribers) {subscriber._init();}
 | 
					        for (subscriber of jobsSubscribers) {subscriber._init(jobs);}
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -75,7 +75,7 @@
 | 
				
			|||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
  var jobList = new JobList("job-list", {
 | 
					  var jobList = new JobList("job-list", jobsSubscribers, {
 | 
				
			||||||
    item: '<div><span class="title"></span><span class="description"></span></div>',
 | 
					    item: '<div><span class="title"></span><span class="description"></span></div>',
 | 
				
			||||||
    page: 4,
 | 
					    page: 4,
 | 
				
			||||||
    pagination: true,
 | 
					    pagination: true,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user