mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +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 => {
|
||||
let listItem = this.listjs.get('id', selectedItemId)[0].elm;
|
||||
let values = this.listjs.get('id', listItem.dataset.id)[0].values();
|
||||
if (!values['is-owner']) {
|
||||
Requests.corpora.entity.followers.entity.delete(selectedItemId, currentUserId);
|
||||
} else {
|
||||
if (values['is-owner']) {
|
||||
Requests.corpora.entity.delete(selectedItemId);
|
||||
} else {
|
||||
Requests.corpora.entity.followers.entity.delete(selectedItemId, currentUserId);
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
this.selectedItemIds.clear();
|
||||
this.renderingItemSelection();
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 1000);
|
||||
|
||||
});
|
||||
modal.open();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user