diff options
| author | timb <timb@mb.local> | 2010-04-12 08:55:59 -0700 |
|---|---|---|
| committer | timb <timb@mb.local> | 2010-04-12 08:55:59 -0700 |
| commit | 05ef02bd2907f4e3ce1b72d6d84d1a2b3acc94c1 (patch) | |
| tree | c8140f184b4641edb0bfe5102f3b93626d8c24d7 /static/js/pichat.js | |
| parent | f59686ebac87770409b1290eb4a600068bbaa302 (diff) | |
fix ajax upload script error
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 9ffcae1..e753195 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -445,7 +445,8 @@ function activateProfileEditable() { return escapeHtml(newVal); }; - setupUploadAvatar('upload'); + if ($('#avatar.editable').length > 0) + setupUploadAvatar('upload'); var textareaOpts = { 'default_text': 'Enter here!', 'callback': onSubmit, |
