aboutsummaryrefslogtreecommitdiff
path: root/static/javascript/minio.js
diff options
context:
space:
mode:
authorMrArmonius <mrarmonius@gmail.com>2021-07-30 00:04:17 +0200
committerAlex Auvolat <alex@adnab.me>2021-08-16 12:54:08 +0200
commita2a484daba1ef42d82f596a989caf203ee9a370f (patch)
treea3ec45738fa59448dd99d6dd5e69172f18043e90 /static/javascript/minio.js
parent0ca6a159b215967a6d13b9bad5c008983e032c3f (diff)
downloadguichet-a2a484daba1ef42d82f596a989caf203ee9a370f.tar.gz
guichet-a2a484daba1ef42d82f596a989caf203ee9a370f.zip
Add profile image front-end and back-end
Correct when empty result The image showed when the result was empty. Now if the `dn == ""` then we write in the column image just `""`
Diffstat (limited to 'static/javascript/minio.js')
-rw-r--r--static/javascript/minio.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/javascript/minio.js b/static/javascript/minio.js
new file mode 100644
index 0000000..cea2a18
--- /dev/null
+++ b/static/javascript/minio.js
@@ -0,0 +1,5 @@
+document.querySelector('.custom-file-input').addEventListener('change',function(e){
+ var fileName = document.getElementById("image").files[0].name;
+ var nextSibling = e.target.nextElementSibling
+ nextSibling.innerText = fileName
+ })