mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Sleep Timer fix CorpusList
This commit is contained in:
parent
8aeafc33bd
commit
62d20409ea
@ -246,17 +246,18 @@ class CorpusList extends ResourceList {
|
|||||||
this.selectedItemIds.forEach(selectedItemId => {
|
this.selectedItemIds.forEach(selectedItemId => {
|
||||||
let listItem = this.listjs.get('id', selectedItemId)[0].elm;
|
let listItem = this.listjs.get('id', selectedItemId)[0].elm;
|
||||||
let values = this.listjs.get('id', listItem.dataset.id)[0].values();
|
let values = this.listjs.get('id', listItem.dataset.id)[0].values();
|
||||||
if (!values['is-owner']) {
|
if (values['is-owner']) {
|
||||||
Requests.corpora.entity.followers.entity.delete(selectedItemId, currentUserId);
|
|
||||||
} else {
|
|
||||||
Requests.corpora.entity.delete(selectedItemId);
|
Requests.corpora.entity.delete(selectedItemId);
|
||||||
|
} else {
|
||||||
|
Requests.corpora.entity.followers.entity.delete(selectedItemId, currentUserId);
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.reload();
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.selectedItemIds.clear();
|
this.selectedItemIds.clear();
|
||||||
this.renderingItemSelection();
|
this.renderingItemSelection();
|
||||||
setTimeout(() => {
|
|
||||||
window.location.reload();
|
|
||||||
}, 1000);
|
|
||||||
});
|
});
|
||||||
modal.open();
|
modal.open();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user