diff options
Diffstat (limited to 'dash/js/profile.js')
| -rw-r--r-- | dash/js/profile.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dash/js/profile.js b/dash/js/profile.js new file mode 100644 index 0000000..9c83aa5 --- /dev/null +++ b/dash/js/profile.js @@ -0,0 +1,14 @@ +$(function () { + $('#chpic').change(function() { + if (this.files && this.files[0]) { + var reader = new FileReader(); + reader.onload = function (e) { + $('#propic img').attr('src', e.target.result); + } + reader.readAsDataURL(this.files[0]); + } + }); + $('.private #propic').click(function () { + $('#chpic').click(); + }); +}); |
