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

Fixing one problem.

This commit is contained in:
Tim Düsterhus 2012-03-11 18:19:11 +01:00
parent f26fa50bd6
commit d29a0498ba

View File

@ -450,13 +450,13 @@ consoleMock ?=
toggleSidebarContents: (target) -> toggleSidebarContents: (target) ->
return if target.parents('li').hasClass 'active' return if target.parents('li').hasClass 'active'
if target.parents('li').attr 'id' is 'toggleUsers' if target.parents('li').attr('id') is 'toggleUsers'
$('#toggleUsers').addClass 'active' $('#toggleUsers').addClass 'active'
$('#toggleRooms').removeClass 'active' $('#toggleRooms').removeClass 'active'
$('#timsChatRoomList').hide() $('#timsChatRoomList').hide()
$('#timsChatUserList').show() $('#timsChatUserList').show()
else if target.parents('li').attr 'id' is 'toggleRooms' else if target.parents('li').attr('id') is 'toggleRooms'
$('#toggleRooms').addClass 'active' $('#toggleRooms').addClass 'active'
$('#toggleUsers').removeClass 'active' $('#toggleUsers').removeClass 'active'