mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Use currentRoom more consistently
This commit is contained in:
parent
6d3bc3b22c
commit
cdae6e6085
@ -86,8 +86,7 @@ Initialize **Tims Chat**. Bind needed DOM events and initialize data structures.
|
||||
When **Tims Chat** becomes focused mark the chat as active and remove the number of new messages from the title.
|
||||
|
||||
$(window).focus ->
|
||||
document.title = v.titleTemplate.fetch
|
||||
title: currentRoom.title
|
||||
document.title = v.titleTemplate.fetch currentRoom
|
||||
|
||||
newMessageCount = 0
|
||||
isActive = true
|
||||
@ -615,8 +614,7 @@ Send out notifications for the given `message`. The number of unread messages wi
|
||||
|
||||
return if isActive or $('#timsChatNotify').data('status') is 0
|
||||
|
||||
document.title = v.titleTemplate.fetch
|
||||
title: $('#timsChatRoomList .active a').text()
|
||||
document.title = v.titleTemplate.fetch $.extend {}, currentRoom,
|
||||
newMessageCount: ++newMessageCount
|
||||
|
||||
title = WCF.Language.get 'chat.general.notify.title'
|
||||
|
Loading…
Reference in New Issue
Block a user