mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Minor Codestyle updates.
This commit is contained in:
parent
982d5bc46f
commit
067273df6d
@ -88,8 +88,8 @@ class RessourceList {
|
|||||||
</tr>
|
</tr>
|
||||||
`.trim();
|
`.trim();
|
||||||
this.listjs.list.style.cursor = 'pointer';
|
this.listjs.list.style.cursor = 'pointer';
|
||||||
this.userId = listElement.dataset.userId;
|
this.userId = this.listjs.listContainer.dataset.userId;
|
||||||
if (typeof this.onclick === 'function') {this.listjs.list.addEventListener('click', event => this.onclick(event));}
|
this.listjs.list.addEventListener('click', event => this.onclick(event));
|
||||||
if (this.userId) {
|
if (this.userId) {
|
||||||
app.addEventListener('users.patch', patch => this.usersPatchHandler(patch));
|
app.addEventListener('users.patch', patch => this.usersPatchHandler(patch));
|
||||||
app.getUserById(this.userId).then(
|
app.getUserById(this.userId).then(
|
||||||
@ -115,9 +115,9 @@ class RessourceList {
|
|||||||
|
|
||||||
init(user) {throw 'Not implemented';}
|
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) {
|
add(ressources) {
|
||||||
let values = Array.isArray(ressources) ? ressources : [ressources];
|
let values = Array.isArray(ressources) ? ressources : [ressources];
|
||||||
|
Loading…
Reference in New Issue
Block a user