Fix some login race conditions/issues
This commit is contained in:
parent
c3035ca368
commit
574ef4435c
5 changed files with 93 additions and 59 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1354,7 +1354,8 @@ function addChatMessage(data) {
|
|||
/* layouts */
|
||||
|
||||
function fluidLayout() {
|
||||
$(".container").css("max-width", "100%");
|
||||
$(".container").removeClass("container").addClass("container-fluid");
|
||||
// TODO resize
|
||||
}
|
||||
|
||||
function synchtubeLayout() {
|
||||
|
|
@ -1547,7 +1548,11 @@ function unhidePlayer() {
|
|||
|
||||
function chatDialog(div) {
|
||||
var parent = $("<div/>").addClass("profile-box")
|
||||
.css("padding", "10px")
|
||||
.css({
|
||||
padding: "10px",
|
||||
"z-index": "auto",
|
||||
position: "absolute"
|
||||
})
|
||||
.appendTo($("body"));
|
||||
|
||||
div.appendTo(parent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue