Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development

This commit is contained in:
Stephan Porada 2019-09-18 11:33:08 +02:00
commit daf6c15111
3 changed files with 5 additions and 5 deletions

View File

@ -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);
} }

View File

@ -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);}
}); });

View File

@ -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,