diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2011-02-13 01:27:41 -0500 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2011-02-13 01:27:41 -0500 |
| commit | 9c9a759442f470ca5c0809b19064ccbaccb1fabf (patch) | |
| tree | 3586e3c20dd42cb964a2e6de8925f09ba2419a6f /static/js | |
| parent | 7c2d6edaa402efb084fe54b27b4603c351f979c8 (diff) | |
Update profile background after uploading avatar
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/pichat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 3cfb85b..24b8f0c 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -944,9 +944,9 @@ function setupUploadAvatar(elementId) { + maxWidth + "x" + maxHeight); return; } - var s = '<img id="dashavatarPic" src="' + r + '" />'; $('#dashavatar').html(s).show(); + $('#dashtotal').css('background-image', 'url(' + r + ')'); }; new AjaxUpload(elementId, { action: '/upload/avatar', |
