summaryrefslogtreecommitdiff
path: root/static/pichat.js
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2009-12-06 21:54:18 -0500
committersostler <sbostler@gmail.com>2009-12-06 21:54:18 -0500
commit3e3015be26c5d73a864a693e9694b5dee26e8a31 (patch)
treef725d5221ae49be8f011a987059864aa0a8b1d33 /static/pichat.js
parenta3edac22517613218a1877fcdfe0f1ea10de6869 (diff)
Fixed profile image handling
Diffstat (limited to 'static/pichat.js')
-rwxr-xr-xstatic/pichat.js7
1 files changed, 6 insertions, 1 deletions
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;
}