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

Focus input after buttonclick

This commit is contained in:
Tim Düsterhus 2012-06-29 17:05:01 +02:00
parent 864f00f284
commit fa07b26b44

View File

@ -159,7 +159,6 @@ window.console ?=
$('.timsChatMessage').remove() $('.timsChatMessage').remove()
@oldScrollTop = null @oldScrollTop = null
$('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height() $('.timsChatMessageContainer').scrollTop $('.timsChatMessageContainer ul').height()
$('#timsChatInput').focus()
# Toggle Buttons # Toggle Buttons
$('.timsChatToggle').click (event) -> $('.timsChatToggle').click (event) ->
@ -174,6 +173,8 @@ window.console ?=
icon.attr 'src', icon.attr('src').replace /disabled(Inverse)?.([a-z]{3})$/, 'enabled$1.$2' icon.attr 'src', icon.attr('src').replace /disabled(Inverse)?.([a-z]{3})$/, 'enabled$1.$2'
element.attr 'title', element.data 'disableMessage' element.attr 'title', element.data 'disableMessage'
$('#timsChatInput').focus()
# Enable fullscreen-mode # Enable fullscreen-mode
$('#timsChatFullscreen').click (event) -> $('#timsChatFullscreen').click (event) ->
if $(@).data 'status' if $(@).data 'status'