Remind channel name or nick in input placeholder

This commit is contained in:
Jérémie Astori 2016-12-20 20:13:05 -05:00
parent 6887b66f67
commit b07ec94bc3

View file

@ -1035,6 +1035,12 @@ $(function() {
}
document.title = title;
var placeholder = "";
if (chan.data("type") === "channel" || chan.data("type") === "query") {
placeholder = "Write to " + chan.data("title") + "...";
}
input.attr("placeholder", placeholder);
if (self.hasClass("chan")) {
$("#chat-container").addClass("active");
setNick(self.closest(".network").data("nick"));