From 9c9a759442f470ca5c0809b19064ccbaccb1fabf Mon Sep 17 00:00:00 2001 From: Scott Ostler Date: Sun, 13 Feb 2011 01:27:41 -0500 Subject: Update profile background after uploading avatar --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/js') 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 = ''; $('#dashavatar').html(s).show(); + $('#dashtotal').css('background-image', 'url(' + r + ')'); }; new AjaxUpload(elementId, { action: '/upload/avatar', -- cgit v1.2.3-70-g09d2