1
0
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:
Maximilian Mader 2013-08-21 20:36:22 +02:00
parent 6d3bc3b22c
commit cdae6e6085

View File

@ -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'