summaryrefslogtreecommitdiff
path: root/static/pichat.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/pichat.js')
-rwxr-xr-xstatic/pichat.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/pichat.js b/static/pichat.js
index 3267b49..4384ed0 100755
--- a/static/pichat.js
+++ b/static/pichat.js
@@ -62,6 +62,8 @@ function submitMessage() {
PostedMessages.push(content);
$('#msgInput').val('');
+ updateUI([{ 'nick': Nick, 'content': content}], null);
+
var onSuccess = function(json) {};
var onError = function(resp, textStatus, errorThrown) {
$('#msgInput, #msgSubmit').removeAttr('disabled');
@@ -77,9 +79,7 @@ function submitMessage() {
dataType: 'json',
success: onSuccess,
error: onError
- });
-
- updateUI([{ 'nick': Nick, 'content': content}], null);
+ });
}
function ifEnter(fn) {