thelounge/client/js/socket-events/open.js

12 lines
281 B
JavaScript
Raw Normal View History

2017-05-18 22:08:54 +02:00
"use strict";
const $ = require("jquery");
const socket = require("../socket");
socket.on("open", function(id) {
// Another client opened the channel, clear the unread counter
$("#sidebar").find(".chan[data-id='" + id + "'] .badge")
.removeClass("highlight")
.empty();
});