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, id: 0,
name: "", name: "",
type: "", type: "",
network: "",
count: 0, count: 0,
messages: [], messages: [],
users: [], users: [],

View File

@ -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%;
} }

View File

@ -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");

View File

@ -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: [],

View File

@ -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);
}; };