mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +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 {
 | 
			
		||||
  constructor(idOrElement, options) {
 | 
			
		||||
  constructor(idOrElement, subscriberList, options) {
 | 
			
		||||
    super(idOrElement, options);
 | 
			
		||||
    jobsSubscribers.push(this);
 | 
			
		||||
    subscriberList.push(this);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  _init() {
 | 
			
		||||
  _init(jobs) {
 | 
			
		||||
    for (let [id, job] of Object.entries(jobs)) {
 | 
			
		||||
      this.addJob(job);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@
 | 
			
		||||
        var subscriber;
 | 
			
		||||
 | 
			
		||||
        jobs = JSON.parse(msg);
 | 
			
		||||
        for (subscriber of jobsSubscribers) {subscriber._init();}
 | 
			
		||||
        for (subscriber of jobsSubscribers) {subscriber._init(jobs);}
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -75,7 +75,7 @@
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
<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>',
 | 
			
		||||
    page: 4,
 | 
			
		||||
    pagination: true,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user