From 4c277cd685a3acc728296e949adb85feb2da4632 Mon Sep 17 00:00:00 2001 From: Inga Kirschnick Date: Tue, 6 Jun 2023 15:39:47 +0200 Subject: [PATCH] Corpus List update --- app/static/js/ResourceLists/CorpusFileList.js | 2 +- app/static/js/ResourceLists/CorpusList.js | 83 +++++++++++-------- .../DetailledPublicCorpusList.js | 71 ++++++++++++++++ .../js/ResourceLists/PublicCorpusList.js | 22 +++-- app/templates/_scripts.html.j2 | 3 +- app/templates/corpora/public_corpus.html.j2 | 2 +- app/templates/main/dashboard.html.j2 | 2 +- app/templates/main/social_area.html.j2 | 4 +- app/templates/users/user.html.j2 | 4 +- 9 files changed, 142 insertions(+), 51 deletions(-) create mode 100644 app/static/js/ResourceLists/DetailledPublicCorpusList.js diff --git a/app/static/js/ResourceLists/CorpusFileList.js b/app/static/js/ResourceLists/CorpusFileList.js index 07a2eaca..5957a140 100644 --- a/app/static/js/ResourceLists/CorpusFileList.js +++ b/app/static/js/ResourceLists/CorpusFileList.js @@ -158,7 +158,7 @@ class CorpusFileList extends ResourceList { window.location.reload(); }); } else { - Requests.corpora.entity.followers.entity.delete(this.corpusId, itemId); + Requests.corpora.entity.files.ent.delete(this.corpusId, itemId) } }); modal.open(); diff --git a/app/static/js/ResourceLists/CorpusList.js b/app/static/js/ResourceLists/CorpusList.js index a95533fe..7988cb85 100644 --- a/app/static/js/ResourceLists/CorpusList.js +++ b/app/static/js/ResourceLists/CorpusList.js @@ -26,9 +26,9 @@ class CorpusList extends ResourceList { get item() { return (values) => { return ` - + -