Use default values for lists in admin user page

This commit is contained in:
Patrick Jentsch 2020-01-13 15:35:21 +01:00
parent 8c69c3881f
commit 9862d32dbb

View File

@ -94,22 +94,7 @@
<script>
socket.emit('subscribe_foreign_user_ressources', {{ user.id }});
var corpusList = new CorpusList("corpus-list", foreignCorporaSubscribers, {
item: '<div><span class="title"></span><span class="description"></span></div>',
page: 4,
pagination: true,
valueNames: ["description", "title", {data: ["id"]}]
});
corpusList.on("filterComplete", List.updatePagination);
corpusList.on("searchComplete", List.updatePagination);
var jobList = new JobList("job-list", foreignJobsSubscribers, {
item: '<div><span class="title"></span><span class="description"></span></div>',
page: 4,
pagination: true,
valueNames: ["description", "title", {data: ["id"]}]
});
jobList.on("filterComplete", List.updatePagination);
jobList.on("searchComplete", List.updatePagination);
var corpusList = new CorpusList("corpus-list", foreignCorporaSubscribers);
var jobList = new JobList("job-list", foreignJobsSubscribers);
</script>
{% endblock %}