mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 12:03:11 +00:00
Minor changes
This commit is contained in:
parent
f33670954d
commit
acdd7bcbcb
3 changed files with 16 additions and 4 deletions
|
@ -213,7 +213,13 @@ button {
|
|||
#chat .row span {
|
||||
display: table-cell;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 3px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
#chat .row:first-child span {
|
||||
padding-top: 6px;
|
||||
}
|
||||
#chat .row:last-child span {
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
#chat .row:hover .time {
|
||||
color: #aaa;
|
||||
|
|
|
@ -55,7 +55,6 @@ $(function() {
|
|||
function event(e, data) {
|
||||
switch (e) {
|
||||
case "join":
|
||||
console.log(render("windows", {windows: [data.chan]}));
|
||||
chat.append(render("windows", {windows: [data.chan]}))
|
||||
.find(".window")
|
||||
.last()
|
||||
|
|
|
@ -405,10 +405,17 @@ function event(e, data) {
|
|||
case "mode":
|
||||
var chan = _.findWhere(channels, {name: data.target});
|
||||
if (typeof chan !== "undefined") {
|
||||
this.client.write("NAMES " + data.target);
|
||||
clearTimeout(this.timer);
|
||||
this.timer = setTimeout((function() {
|
||||
this.client.write("NAMES " + data.target);
|
||||
}).bind(this), 200);
|
||||
var nick = data.nick;
|
||||
if (nick.indexOf(".") !== -1) {
|
||||
nick = data.target;
|
||||
}
|
||||
var msg = new Msg({
|
||||
type: "mode",
|
||||
from: data.nick,
|
||||
from: nick,
|
||||
text: data.mode + " " + data.client,
|
||||
});
|
||||
chan.messages.push(msg);
|
||||
|
|
Loading…
Reference in a new issue