* move registerChatMessage so that it always gets a chance to fire

This commit is contained in:
Seth Call 2014-05-09 14:27:18 -05:00
parent 2c58ded35f
commit dc6dec76cf
1 changed files with 2 additions and 2 deletions

View File

@ -139,14 +139,14 @@
$form.submit(sendMessage);
$textBox.keydown(handleEnter);
$sendChatMessageBtn.click(sendMessage);
registerChatMessage(bind);
}
else {
$form.submit(null);
$textBox.keydown(null);
$sendChatMessageBtn.click(null);
}
registerChatMessage(bind);
}
// called from sidebar when messages come in