diff options
| author | sostler <sbostler@gmail.com> | 2010-01-31 03:31:13 -0500 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-01-31 03:31:13 -0500 |
| commit | 65f50e036d7cf3614fb16364891a8f0bfc4ba7a1 (patch) | |
| tree | e9856c1ef652e7dda7782b245dfda2fa16f0988e /static/js | |
| parent | 941ebfed86a4d132b380cce3cca82b931c095a19 (diff) | |
Changing to POST
Diffstat (limited to 'static/js')
| -rwxr-xr-x | static/js/pichat.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 0a99f6c..01ae492 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -129,7 +129,7 @@ function addNewMessages(msgs) { var wasScrolledToBottom = isScrolledToBottom($('#messageList')[0]); var msgStr = $.map(msgs, buildMessageDiv).join(''); $('#messageList').append(msgStr); - + if (wasScrolledToBottom) { delayedScrollToBottom(500); } } @@ -243,15 +243,17 @@ function initProfile() { return escapeHtml(newVal); }; - var opt = { 'default_text': 'Enter here!', - 'callback': onSubmit, - 'field_type': 'text', - 'callbackShowErrors': false }; - $('#avatar.editable').editInPlace(opt); - + var avatarOpts = { 'default_text': 'Enter here!', + 'callback': onSubmit, + 'field_type': 'text', + 'callbackShowErrors': false }; + $('#avatar.editable').editInPlace(avatarOpts); - opt['field_type'] = 'textarea'; - $('#contact.editable, #bio.editable').editInPlace(opt); + var textareaOpts = { 'default_text': 'Enter here!', + 'callback': onSubmit, + 'field_type': 'textarea', + 'callbackShowErrors': false }; + $('#contact.editable, #bio.editable').editInPlace(textareaOpts); }; |
