Added back for disciplines and years charts

This commit is contained in:
Florian Sylvain
2022-01-08 18:54:04 +01:00
parent 80880dd377
commit ffffd33a82
4 changed files with 89 additions and 5 deletions
+1 -1
View File
@@ -66,6 +66,7 @@ function apiRequestThese(search, offset) {
emptyResults(true)
pagesNumbers.innerHTML = ""
loader.style.display = "block"
pagesNumbersContainer.style.display = 'none'
searchString = sanitize(search)
fetch(`api.php?q=theses&search=${searchString}&option=${queryOption}&offset=${offset}`)
.then(response => response.json())
@@ -132,7 +133,6 @@ function displayResults(results, aCount) {
error.classList.remove("fade-out");
error.classList.add("fade-in");
errorMessage.innerHTML = results.message
pagesNumbersContainer.style.display = 'none'
} else if (results.status === 200) {
count = aCount
resultsArray = []