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

Fixing fullscreen mode

This commit is contained in:
Tim Düsterhus 2012-06-25 20:41:05 +02:00
parent 1b522931bb
commit fe3def5482

View File

@ -174,7 +174,7 @@ 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'
if document.fullscreen or document.mozFullScreen or document.webkitIsFullScreen if document.requestFullscreen or document.mozRequestFullScreen or document.webkitRequestFullScreen
# Enable fullscreen-mode on #main # Enable fullscreen-mode on #main
$('#timsChatFullscreen').click (event) -> $('#timsChatFullscreen').click (event) ->
if $(@).data 'status' if $(@).data 'status'
@ -199,7 +199,7 @@ window.console ?=
unless document.fullscreen or document.mozFullScreen or document.webkitIsFullScreen unless document.fullscreen or document.mozFullScreen or document.webkitIsFullScreen
$('#timsChatFullscreen').click() $('#timsChatFullscreen').click()
else else
$('#timsChatFullscreen').remove() $('#timsChatFullscreen').parent().remove()
# Immediatly scroll down when activating autoscroll # Immediatly scroll down when activating autoscroll
$('#timsChatAutoscroll').click (event) -> $('#timsChatAutoscroll').click (event) ->