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

Make smilies transparent if disabled

This commit is contained in:
Tim Düsterhus 2013-01-30 17:19:32 +01:00
parent 1fc25c5def
commit 5a9725c24e

View File

@ -178,13 +178,6 @@ window.console ?=
# Refreshes the roomlist
$('#timsChatRoomList button').click $.proxy @refreshRoomList, @
# Clears the stream
$('#timsChatClear').click (event) ->
event.preventDefault()
$('.timsChatMessage').remove()
@oldScrollTop = null
$('#timsChatMessageContainer').scrollTop $('#timsChatMessageContainer ul').height()
# Toggle Buttons
$('.timsChatToggle').click (event) ->
element = $ @
@ -200,6 +193,19 @@ window.console ?=
$('#timsChatInput').focus()
# Clears the stream
$('#timsChatClear').click (event) ->
event.preventDefault()
$('.timsChatMessage').remove()
@oldScrollTop = null
$('#timsChatMessageContainer').scrollTop $('#timsChatMessageContainer ul').height()
$('#timsChatSmilies.click (event) ->
if $(@).data 'status'
$('#smilies').removeClass 'disabled'
else
$('#smilies').addClass 'disabled'
# Enable fullscreen-mode
$('#timsChatFullscreen').click (event) ->
if $(@).data 'status'