Minor changes
This commit is contained in:
parent
86e4ad770f
commit
7e0b11ebf2
@ -76,6 +76,7 @@ socket.emit("join", {
|
|||||||
id: 0,
|
id: 0,
|
||||||
name: "",
|
name: "",
|
||||||
type: "",
|
type: "",
|
||||||
|
network: "",
|
||||||
count: 0,
|
count: 0,
|
||||||
messages: [],
|
messages: [],
|
||||||
users: [],
|
users: [],
|
||||||
|
@ -247,6 +247,7 @@ button {
|
|||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
}
|
}
|
||||||
#sign-in-input {
|
#sign-in-input {
|
||||||
|
color: #95a5a6;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ $(function() {
|
|||||||
switch (e) {
|
switch (e) {
|
||||||
case "auth":
|
case "auth":
|
||||||
chat.add($("#networks")).empty();
|
chat.add($("#networks")).empty();
|
||||||
$("#sign-in").addClass("active");
|
$("#sign-in").addClass("active").find("#sign-in-input").focus();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "debug":
|
case "debug":
|
||||||
@ -163,10 +163,9 @@ $(function() {
|
|||||||
.find(".badge")
|
.find(".badge")
|
||||||
.removeClass("highlight")
|
.removeClass("highlight")
|
||||||
.empty();
|
.empty();
|
||||||
|
|
||||||
|
$("#main .active").removeClass("active");
|
||||||
var window = $(target)
|
var window = $(target)
|
||||||
.siblings()
|
|
||||||
.removeClass("active")
|
|
||||||
.end()
|
|
||||||
.css("z-index", z++)
|
.css("z-index", z++)
|
||||||
.addClass("active");
|
.addClass("active");
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ function Chan(attr) {
|
|||||||
id: global.id = ++global.id || 1,
|
id: global.id = ++global.id || 1,
|
||||||
name: "",
|
name: "",
|
||||||
type: "channel",
|
type: "channel",
|
||||||
|
network: "",
|
||||||
count: 0,
|
count: 0,
|
||||||
messages: [],
|
messages: [],
|
||||||
users: [],
|
users: [],
|
||||||
|
@ -20,6 +20,7 @@ function Network(attr) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Network.prototype.addChan = function(chan) {
|
Network.prototype.addChan = function(chan) {
|
||||||
|
chan.network = this.host;
|
||||||
this.channels.push(chan);
|
this.channels.push(chan);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user