1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Changes title format for message notification

This commit is contained in:
Tim Düsterhus 2012-01-22 14:07:49 +01:00
parent 48531785a9
commit 05138dff87

View File

@ -250,7 +250,7 @@ TimWolla.WCF ?= {}
return if (@isActive or $('#chatNotify').data('status') is 0)
@newMessageCount++
document.title = @newMessageCount + ' ' + WCF.Language.get('wcf.chat.newMessages') + ' - ' + @titleTemplate.fetch({ title: $('#chatRoomList .activeMenuItem a').text() })
document.title = '(' + @newMessageCount + ') ' + @titleTemplate.fetch({ title: $('#chatRoomList .activeMenuItem a').text() })
if typeof window.webkitNotifications isnt 'undefined'
if window.webkitNotifications.checkPermission() is 0