mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-04 22:27: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??
|
||||
if(increment)
|
||||
{
|
||||
// Only increment if the chat window is not already open
|
||||
if(!$('#chattext').is(':visible'))
|
||||
{
|
||||
var count = Number($("#chatcounter").text());
|
||||
count++;
|
||||
|
@ -122,6 +125,7 @@ var chat = (function()
|
|||
chatMentions++;
|
||||
document.title = "("+chatMentions+") " + title;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#chatthrob').html("<b>"+authorName+"</b>" + ": " + text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue