diff options
Diffstat (limited to 'static/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, |
