diff options
| author | sostler <sbostler@gmail.com> | 2010-04-12 04:37:06 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-04-12 04:37:06 -0400 |
| commit | f59686ebac87770409b1290eb4a600068bbaa302 (patch) | |
| tree | 405f19092534580d692a57883943d105b5bf3276 | |
| parent | d9b9b36d433539d87a934069d1c78bfc4fbff04f (diff) | |
Removed avatar url-setting
| -rw-r--r-- | static/js/pichat.js | 9 | ||||
| -rw-r--r-- | template/profile.st | 3 |
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> |
