1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix hiding of topic when empty

This commit is contained in:
Tim Düsterhus 2013-05-26 18:59:38 +02:00
parent 7b04bcff73
commit 08681fe56c

View File

@ -600,7 +600,7 @@ Joins a room.
loading = false loading = false
$('#timsChatTopic').text data.returnValues.topic $('#timsChatTopic').text data.returnValues.topic
if data.topic is '' if data.returnValues.topic.trim() is ''
$('#timsChatTopic').addClass 'empty' $('#timsChatTopic').addClass 'empty'
else else
$('#timsChatTopic').removeClass 'empty' $('#timsChatTopic').removeClass 'empty'