mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Fix issue where chat increment would go up even if the chat box was in focus, makes sense, apologies this wasn't in first commit
This commit is contained in:
parent
438bee7ef5
commit
c230e3db2d
1 changed files with 16 additions and 12 deletions
|
@ -107,6 +107,9 @@ var chat = (function()
|
||||||
|
|
||||||
//should we increment the counter??
|
//should we increment the counter??
|
||||||
if(increment)
|
if(increment)
|
||||||
|
{
|
||||||
|
// Only increment if the chat window is not already open
|
||||||
|
if(!$('#chattext').is(':visible'))
|
||||||
{
|
{
|
||||||
var count = Number($("#chatcounter").text());
|
var count = Number($("#chatcounter").text());
|
||||||
count++;
|
count++;
|
||||||
|
@ -122,6 +125,7 @@ var chat = (function()
|
||||||
chatMentions++;
|
chatMentions++;
|
||||||
document.title = "("+chatMentions+") " + title;
|
document.title = "("+chatMentions+") " + title;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text);
|
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue