From f00702b51c8904f9fb42a90a6e22301ae8d4014a Mon Sep 17 00:00:00 2001 From: MrArmonius Date: Fri, 30 Jul 2021 16:30:15 +0200 Subject: Correction Review Alex Change json Identifiant to ID --- static/javascript/search.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'static/javascript') diff --git a/static/javascript/search.js b/static/javascript/search.js index 212ed15..ea98e34 100644 --- a/static/javascript/search.js +++ b/static/javascript/search.js @@ -23,20 +23,20 @@ function searchDirectory() { var row = table.insertRow(0); var urlName = row.insertCell(0); var identifiant = row.insertCell(1); - var name = row.insertCell(2); + var displayname = row.insertCell(2); var email = row.insertCell(3); var description = row.insertCell(4); description.setAttribute("style", "word-break: break-all;"); if (jsonResponse.search[i].dn.localeCompare("")!=0) { - urlName.innerHTML = `` + urlName.innerText = `` }else { - urlName.innerHTML="" + urlName.innerText="" } - identifiant.innerHTML = `${jsonResponse.search[i].identifiant}` - name.innerHTML = jsonResponse.search[i].name - email.innerHTML = jsonResponse.search[i].email - description.innerHTML = jsonResponse.search[i].description + identifiant.innerText = `${jsonResponse.search[i].id}` + displayname.innerText = jsonResponse.search[i].displayname + email.innerText = jsonResponse.search[i].email + description.innerText = jsonResponse.search[i].description } old_table.parentNode.replaceChild(table, old_table) -- cgit v1.2.3