From 3e3015be26c5d73a864a693e9694b5dee26e8a31 Mon Sep 17 00:00:00 2001 From: sostler Date: Sun, 6 Dec 2009 21:54:18 -0500 Subject: Fixed profile image handling --- static/pichat.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/pichat.js b/static/pichat.js index fe5beaa..826bcba 100755 --- a/static/pichat.js +++ b/static/pichat.js @@ -144,9 +144,14 @@ function initChat() { } function initProfile() { + $('.logged-dump .content').each(function() { + var t = $(this); + t.html(buildMsgContent(t.text())); + }); + var onSubmit = function(original_element, edit, old) { if (edit == old) { return old }; - // Prevent entering script tags. TODO: investigate better scheme. + // MAJOR TODO: Prevent entering script tags if (original_element == 'avatar' && edit.indexOf("<") != -1) { return old; } -- cgit v1.2.3-70-g09d2