aboutsummaryrefslogtreecommitdiff
path: root/scripts/src/account-edit.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/account-edit.js')
-rw-r--r--scripts/src/account-edit.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/src/account-edit.js b/scripts/src/account-edit.js
index c9d3e9a..b592666 100644
--- a/scripts/src/account-edit.js
+++ b/scripts/src/account-edit.js
@@ -1 +1,7 @@
-getElementById('FileField').value = getElementById('file-upload-wrapper').value;
+if (typeof(document.getElementById('id_photo')) != 'undefined' && document.getElementById('id_photo') != null) {
+ var input = document.getElementById('id_photo');
+ input.fname = document.getElementById('filename');
+ input.addEventListener('change', function(e){
+ e.target.fname.innerHTML = e.target.value.split("\\")[2];
+ });
+}