aboutsummaryrefslogtreecommitdiff
path: root/static/javascript/search.js
diff options
context:
space:
mode:
authorMrArmonius <mrarmonius@gmail.com>2021-07-30 16:30:15 +0200
committerAlex Auvolat <alex@adnab.me>2021-08-16 12:54:08 +0200
commitf00702b51c8904f9fb42a90a6e22301ae8d4014a (patch)
treee3d8364b3a51f3498eccf55f9e636114b3005d9b /static/javascript/search.js
parenta2a484daba1ef42d82f596a989caf203ee9a370f (diff)
downloadguichet-f00702b51c8904f9fb42a90a6e22301ae8d4014a.tar.gz
guichet-f00702b51c8904f9fb42a90a6e22301ae8d4014a.zip
Correction Review Alex
Change json Identifiant to ID
Diffstat (limited to 'static/javascript/search.js')
-rw-r--r--static/javascript/search.js14
1 files changed, 7 insertions, 7 deletions
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 = `<object data="/image/${jsonResponse.search[i].dn}/little" class=".img-thumbnail"><image src="/image/unknown_profile/little" class=".img-thumbnail"></object>`
+ urlName.innerText = `<object data="/image/${jsonResponse.search[i].dn}/little" class=".img-thumbnail"><image src="/image/unknown_profile/little" class=".img-thumbnail"></object>`
}else {
- urlName.innerHTML=""
+ urlName.innerText=""
}
- identifiant.innerHTML = `<a href="/admin/ldap/${jsonResponse.search[i].dn}">${jsonResponse.search[i].identifiant}</a>`
- name.innerHTML = jsonResponse.search[i].name
- email.innerHTML = jsonResponse.search[i].email
- description.innerHTML = jsonResponse.search[i].description
+ identifiant.innerText = `<a href="/admin/ldap/${jsonResponse.search[i].dn}">${jsonResponse.search[i].id}</a>`
+ 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)