summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/pichat.js9
-rw-r--r--template/profile.st3
2 files changed, 2 insertions, 10 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 46ae121..9ffcae1 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -445,14 +445,7 @@ function activateProfileEditable() {
return escapeHtml(newVal);
};
- var avatarOpts = { 'default_text': 'Paste URL here!',
- 'callback': onSubmit,
- 'field_type': 'text',
- 'callbackShowErrors': false };
- if ($('#avatar.editable').length > 0) {
- $('#avatar.editable').editInPlace(avatarOpts);
- setupUploadAvatar('upload');
- }
+ setupUploadAvatar('upload');
var textareaOpts = { 'default_text': 'Enter here!',
'callback': onSubmit,
diff --git a/template/profile.st b/template/profile.st
index dcf4497..2a65b36 100644
--- a/template/profile.st
+++ b/template/profile.st
@@ -39,12 +39,11 @@
$if(avatar)$
<img id="avatarPic" src="$avatar$" width="150px"/>
$else$
- <img id="avatarPic"><img src="/static/img/noinfo.png">
+ <img id="avatarPic" src="/static/img/noinfo.png">
$endif$
$if(is_home)$
<div id="avatar-editing" style="display: none">
- <div id="avatar" class="editable">$avatar$</div>
<input id="upload" value="Upload Icon" type="submit">
<img id="spinner" src="/static/img/spinner.gif" style="display: none" />
</div>