Minor changes

This commit is contained in:
Mattias Erming 2014-06-15 22:36:55 +02:00
parent 86e4ad770f
commit 7e0b11ebf2
5 changed files with 7 additions and 4 deletions

View file

@ -76,6 +76,7 @@ socket.emit("join", {
id: 0,
name: "",
type: "",
network: "",
count: 0,
messages: [],
users: [],

View file

@ -247,6 +247,7 @@ button {
max-width: 250px;
}
#sign-in-input {
color: #95a5a6;
margin-bottom: 20px;
width: 100%;
}

View file

@ -66,7 +66,7 @@ $(function() {
switch (e) {
case "auth":
chat.add($("#networks")).empty();
$("#sign-in").addClass("active");
$("#sign-in").addClass("active").find("#sign-in-input").focus();
break;
case "debug":
@ -163,10 +163,9 @@ $(function() {
.find(".badge")
.removeClass("highlight")
.empty();
$("#main .active").removeClass("active");
var window = $(target)
.siblings()
.removeClass("active")
.end()
.css("z-index", z++)
.addClass("active");

View file

@ -8,6 +8,7 @@ function Chan(attr) {
id: global.id = ++global.id || 1,
name: "",
type: "channel",
network: "",
count: 0,
messages: [],
users: [],

View file

@ -20,6 +20,7 @@ function Network(attr) {
};
Network.prototype.addChan = function(chan) {
chan.network = this.host;
this.channels.push(chan);
};