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. 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,9 +614,8 @@ 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'
content = "#{message.username}#{message.separator} #{message.message}" content = "#{message.username}#{message.separator} #{message.message}"