hardlounge/client/js/socket-events/open.js
2017-06-20 07:22:58 +01:00

12 lines
281 B
JavaScript

"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();
});