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:
parent
1b522931bb
commit
fe3def5482
@ -174,7 +174,7 @@ window.console ?=
|
||||
icon.attr 'src', icon.attr('src').replace /disabled(Inverse)?.([a-z]{3})$/, 'enabled$1.$2'
|
||||
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
|
||||
$('#timsChatFullscreen').click (event) ->
|
||||
if $(@).data 'status'
|
||||
@ -199,7 +199,7 @@ window.console ?=
|
||||
unless document.fullscreen or document.mozFullScreen or document.webkitIsFullScreen
|
||||
$('#timsChatFullscreen').click()
|
||||
else
|
||||
$('#timsChatFullscreen').remove()
|
||||
$('#timsChatFullscreen').parent().remove()
|
||||
|
||||
# Immediatly scroll down when activating autoscroll
|
||||
$('#timsChatAutoscroll').click (event) ->
|
||||
|
Loading…
Reference in New Issue
Block a user