mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Take care of notify status
This commit is contained in:
parent
b024554c29
commit
3b5fa3d95a
@ -157,7 +157,7 @@ TimWolla.WCF ?= {}
|
||||
dataType: 'json'
|
||||
type: 'POST'
|
||||
success: $.proxy((data, textStatus, jqXHR) ->
|
||||
if (!@isActive)
|
||||
if (!@isActive && $('#chatNotify').data('status') is 1)
|
||||
@newMessageCount += data.messages.length
|
||||
if (@newMessageCount > 0)
|
||||
@timeout = setTimeout $.proxy(() ->
|
||||
|
Loading…
Reference in New Issue
Block a user