mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed 300 or something jquery references so far
This commit is contained in:
@@ -97,15 +97,13 @@ var Chat = {
|
||||
$("#favicon").attr("href", "/assets/images/highlogo.png");
|
||||
unseen = true;
|
||||
chat_unseen = true;
|
||||
if($(".chat-link span.badge.new.white").hasClass("hide")){
|
||||
$(".chat-link span.badge.new.white").removeClass("hide");
|
||||
}
|
||||
Helper.removeClass(".chat-link span badge new white", "hide");
|
||||
var to_display = Chat.channel_received + Chat.all_received > 9 ? "9+" : Chat.channel_received + Chat.all_received;
|
||||
$(".chat-link span.badge.new.white").html(to_display);
|
||||
Helper.setHtml(".chat-link span badge new white", to_display);
|
||||
}
|
||||
|
||||
if(document.hidden) {
|
||||
$("#favicon").attr("href", "/assets/images/highlogo.png");
|
||||
document.getElementById("favicon").setAttribute("href", "/assets/images/highlogo.png");
|
||||
}
|
||||
|
||||
if($("#chatall").children().length > 100) {
|
||||
@@ -146,11 +144,9 @@ var Chat = {
|
||||
chat_unseen = true;
|
||||
Chat.channel_received += 1;
|
||||
//blink_interval = setTimeout(Chat.chat_blink, 1000);
|
||||
if($(".chat-link span.badge.new.white").hasClass("hide")) {
|
||||
$(".chat-link span.badge.new.white").removeClass("hide");
|
||||
}
|
||||
Helper.removeClass(".chat-link span badge new white", "hide");
|
||||
var to_display = Chat.channel_received + Chat.all_received > 9 ? "9+" : Chat.channel_received + Chat.all_received;
|
||||
$(".chat-link span.badge.new.white").html(to_display);
|
||||
Helper.setHtml(".chat-link span badge new white", to_display);
|
||||
}
|
||||
|
||||
if($("#chatchannel").children().length > 100) {
|
||||
|
||||
Reference in New Issue
Block a user