This commit is contained in:
Mattias Erming 2014-05-14 03:36:51 +02:00
parent ebabd789ed
commit 2c34d129d8
2 changed files with 4 additions and 3 deletions

View file

@ -116,6 +116,7 @@ button::-moz-focus-inner {
transition: all .25s;
width: 100%;
}
#menu .opt.active,
#menu .opt:hover {
background: #e1e4e7;
color: #34495e;
@ -164,7 +165,7 @@ button::-moz-focus-inner {
padding: 0 6px;
}
#networks .badge.highlight {
background: #f8f5f5;
background: #f8e2e2;
color: #e74c3c;
}
#networks .badge:empty {

View file

@ -140,7 +140,7 @@ $(function() {
chat.on("append", ".messages", function() {
var messages = $(this);
var id = messages.closest(".window").find(".input").parent().data("target");
var id = messages.closest(".window").find(".form").data("target");
var badge = $("#channel-" + id + ":not(.active) .badge");
if (badge.length != 0) {
var i = (parseInt(badge.html()) || 0) + 1;
@ -159,7 +159,7 @@ $(function() {
chat.on("click", ".user", function() {
var user = $(this);
var id = user.closest(".window").find(".input").parent().data("target");
var id = user.closest(".window").find(".form").data("target");
var name = user.html().replace(/[\s+@]/g, "");
if (name.match(/[#.]|-!-/) != null) {
return;