gvguichet/static/javascript/minio.js
MrArmonius a2a484daba
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 `""`
2021-08-16 12:54:08 +02:00

6 lines
243 B
JavaScript

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
})