little fix for profile picture uploading

This commit is contained in:
Connor Turland 2014-11-04 08:52:45 -05:00
parent 6a052f9ea1
commit 28fb9a8bae

View file

@ -4456,6 +4456,7 @@ Metamaps.Account = {
var imageObj = new Image(); var imageObj = new Image();
imageObj.onload = function() { imageObj.onload = function() {
$('.userImageDiv canvas').remove();
$('.userImageDiv img').hide(); $('.userImageDiv img').hide();
var imgWidth = imageObj.width; var imgWidth = imageObj.width;
@ -4491,7 +4492,7 @@ Metamaps.Account = {
var self = Metamaps.Account; var self = Metamaps.Account;
$('.userImageDiv canvas').remove(); $('.userImageDiv canvas').remove();
$('.userImage img').attr('src', '/assets/user.png').show(); $('.userImageDiv img').attr('src', '/assets/user.png').show();
$('.userImageMenu').hide(); $('.userImageMenu').hide();
var input = $('#user_image'); var input = $('#user_image');