mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40: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.
|
When **Tims Chat** becomes focused mark the chat as active and remove the number of new messages from the title.
|
||||||
|
|
||||||
$(window).focus ->
|
$(window).focus ->
|
||||||
document.title = v.titleTemplate.fetch
|
document.title = v.titleTemplate.fetch currentRoom
|
||||||
title: currentRoom.title
|
|
||||||
|
|
||||||
newMessageCount = 0
|
newMessageCount = 0
|
||||||
isActive = true
|
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
|
return if isActive or $('#timsChatNotify').data('status') is 0
|
||||||
|
|
||||||
document.title = v.titleTemplate.fetch
|
document.title = v.titleTemplate.fetch $.extend {}, currentRoom,
|
||||||
title: $('#timsChatRoomList .active a').text()
|
|
||||||
newMessageCount: ++newMessageCount
|
newMessageCount: ++newMessageCount
|
||||||
|
|
||||||
title = WCF.Language.get 'chat.general.notify.title'
|
title = WCF.Language.get 'chat.general.notify.title'
|
||||||
|
Loading…
Reference in New Issue
Block a user