summaryrefslogtreecommitdiff
path: root/dash/js/profile.js
blob: 9c83aa5a56be81eff282473195068be33de25ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
  });
});