Fix some login race conditions/issues

This commit is contained in:
calzoneman 2014-01-25 21:29:56 -06:00
parent c3035ca368
commit 574ef4435c
5 changed files with 93 additions and 59 deletions

View file

@ -138,10 +138,7 @@ Callbacks = {
var parent = chatDialog(div);
parent.attr("id", "needpw");
var sendpw = function () {
socket.emit("joinChannel", {
name: CHANNEL.name,
pw: pwbox.val()
});
socket.emit("channelPassword", pwbox.val());
parent.remove();
};
submit.click(sendpw);