Minor Codestyle updates.

This commit is contained in:
Patrick Jentsch 2021-12-08 15:36:10 +01:00
parent 982d5bc46f
commit 067273df6d

View File

@ -88,8 +88,8 @@ class RessourceList {
</tr>
`.trim();
this.listjs.list.style.cursor = 'pointer';
this.userId = listElement.dataset.userId;
if (typeof this.onclick === 'function') {this.listjs.list.addEventListener('click', event => this.onclick(event));}
this.userId = this.listjs.listContainer.dataset.userId;
this.listjs.list.addEventListener('click', event => this.onclick(event));
if (this.userId) {
app.addEventListener('users.patch', patch => this.usersPatchHandler(patch));
app.getUserById(this.userId).then(
@ -115,9 +115,9 @@ class RessourceList {
init(user) {throw 'Not implemented';}
usersPatchHandler(patch) {throw 'Not implemented';}
onclick(event) {throw 'Not implemented';}
preprocessRessource() {throw 'Not implemented'}
usersPatchHandler(patch) {throw 'Not implemented';}
add(ressources) {
let values = Array.isArray(ressources) ? ressources : [ressources];