From 2c34d129d82bbf987384e548cd6b30ee914def73 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Wed, 14 May 2014 03:36:51 +0200 Subject: [PATCH] Bugfixes --- client/css/style.css | 3 ++- client/js/chat.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 6108e4b8..c23d6462 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -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 { diff --git a/client/js/chat.js b/client/js/chat.js index 0a4d6f12..4f80ad16 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -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;