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

Fix empty topic boxes

This commit is contained in:
Maximilian Mader 2014-02-27 20:43:54 +01:00
parent 2a0dd00875
commit cbcdc7c236
2 changed files with 6 additions and 6 deletions

View File

@ -825,9 +825,9 @@ Joins a room.
$('#timsChatTopic > .topic').text currentRoom.topic $('#timsChatTopic > .topic').text currentRoom.topic
if currentRoom.topic.trim() is '' if currentRoom.topic.trim() is ''
$('#timsChatTopic').addClass 'empty' $('#timsChatTopic').addClass 'invisible'
else else
$('#timsChatTopic').removeClass 'empty' $('#timsChatTopic').removeClass 'invisible'
$('.timsChatMessage').addClass 'unloaded' $('.timsChatMessage').addClass 'unloaded'
@ -864,7 +864,7 @@ Open private channel
$('.timsChatMessageContainer').height $('.timsChatMessageContainer').height() $('.timsChatMessageContainer').height $('.timsChatMessageContainer').height()
if userID isnt 0 if userID isnt 0
$('#timsChatTopic').removeClass 'empty' $('#timsChatTopic').removeClass 'invisible'
$('#timsChatTopic > .topic').html WCF.Language.get 'chat.global.privateChannelTopic', {username: userList.allTime[userID].username} $('#timsChatTopic > .topic').html WCF.Language.get 'chat.global.privateChannelTopic', {username: userList.allTime[userID].username}
$('#timsChatMessageTabMenu').removeClass 'singleTab' $('#timsChatMessageTabMenu').removeClass 'singleTab'
@ -890,9 +890,9 @@ Open private channel
else else
$('#timsChatTopic > .topic').text currentRoom.topic $('#timsChatTopic > .topic').text currentRoom.topic
if currentRoom.topic.trim() is '' if currentRoom.topic.trim() is ''
$('#timsChatTopic').addClass 'empty' $('#timsChatTopic').addClass 'invisible'
else else
$('#timsChatTopic').removeClass 'empty' $('#timsChatTopic').removeClass 'invisible'
$('.timsChatMessageContainer').removeClass 'active' $('.timsChatMessageContainer').removeClass 'active'
$("#timsChatMessageContainer#{userID}").addClass 'active' $("#timsChatMessageContainer#{userID}").addClass 'active'

View File

@ -212,7 +212,7 @@
border-color: @wcfContainerBorderColor; border-color: @wcfContainerBorderColor;
> .timsChatText { > .timsChatText {
li { > li {
border-style: solid; border-style: solid;
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
border-color: @wcfContainerBorderColor; border-color: @wcfContainerBorderColor;