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 `
+ + | Service | Title and Description | Status | @@ -133,6 +146,15 @@ class JobList extends ResourceList { window.location.href = `/jobs/${itemId}`; break; } + case 'select': { + if (event.target.checked) { + this.selectedItemIds.add(itemId); + } else { + this.selectedItemIds.delete(itemId); + } + this.renderingItemSelection(); + break; + } default: { break; }
---|