diff --git a/app/static/js/nopaque/RessourceLists/CorpusFileList.js b/app/static/js/nopaque/RessourceLists/CorpusFileList.js index ed6a4b49..e49ee8fa 100644 --- a/app/static/js/nopaque/RessourceLists/CorpusFileList.js +++ b/app/static/js/nopaque/RessourceLists/CorpusFileList.js @@ -5,7 +5,6 @@ class CorpusFileList extends RessourceList { } init(user) { - console.log(user); this._init(user.corpora[this.corpusId].files); } diff --git a/app/static/js/nopaque/RessourceLists/QueryResultList.js b/app/static/js/nopaque/RessourceLists/QueryResultList.js index 832a482d..302967aa 100644 --- a/app/static/js/nopaque/RessourceLists/QueryResultList.js +++ b/app/static/js/nopaque/RessourceLists/QueryResultList.js @@ -4,7 +4,7 @@ class QueryResultList extends RessourceList { } init(user) { - super.init(user.query_results); + super._init(user.query_results); } onclick(event) { diff --git a/app/static/js/nopaque/RessourceLists/RessourceList.js b/app/static/js/nopaque/RessourceLists/RessourceList.js index 81b9133d..442f25c9 100644 --- a/app/static/js/nopaque/RessourceLists/RessourceList.js +++ b/app/static/js/nopaque/RessourceLists/RessourceList.js @@ -4,8 +4,17 @@ class RessourceList { * a base class for concrete ressource list implementations. */ constructor(listElement, options = {}) { - this.list = new List(listElement, {...RessourceList.options, ...options}); - this.list.list.innerHTML = ` + let i; + + if (!(listElement.hasAttribute('id'))) { + for (i = 0; true; i++) { + if (document.querySelector(`ressource-list-${i}`)) {continue;} + listElement.id = `ressource-list-${i}`; + break; + } + } + this.listjs = new List(listElement, {...RessourceList.options, ...options}); + this.listjs.list.innerHTML = `
Service | @@ -108,11 +108,3 @@ {% endblock modals %} - -{% block scripts %} -{{ super() }} - -{% endblock scripts %} diff --git a/app/templates/admin/users.html.j2 b/app/templates/admin/users.html.j2 index 8c1e09c1..57df8862 100644 --- a/app/templates/admin/users.html.j2 +++ b/app/templates/admin/users.html.j2 @@ -8,7 +8,7 @@
---|
Id | @@ -40,7 +40,7 @@ {% block scripts %} {{ super() }} {% endblock scripts %} diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index 1d455eda..e98e5b06 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -72,7 +72,7 @@ -
---|
@@ -48,7 +48,7 @@ - |
---|
@@ -89,7 +89,7 @@
-
+ My JobsA job is the execution of a service provided by nopaque. You can create any number of jobs and let them be processed simultaneously.
@@ -99,7 +99,7 @@
-
|
---|