From 526fd1769e23246fae0c553098b5fcb975a8ad3f Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 5 Jun 2023 13:44:07 +0200
Subject: [PATCH] First works on adding select to joblist
---
app/static/js/ResourceLists/JobList.js | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/app/static/js/ResourceLists/JobList.js b/app/static/js/ResourceLists/JobList.js
index ff09d3cf..f8ccc058 100644
--- a/app/static/js/ResourceLists/JobList.js
+++ b/app/static/js/ResourceLists/JobList.js
@@ -9,6 +9,7 @@ class JobList extends ResourceList {
super(listContainerElement, options);
this.listjs.list.addEventListener('click', (event) => {this.onClick(event)});
this.isInitialized = false;
+ this.selectedItemIds = new Set();
this.userId = listContainerElement.dataset.userId;
if (this.userId === undefined) {return;}
app.subscribeUser(this.userId).then((response) => {
@@ -25,6 +26,12 @@ class JobList extends ResourceList {
get item() {
return `
+
+
+ |
|
|
|
@@ -61,6 +68,12 @@ class JobList extends ResourceList {