mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Really fix it
This commit is contained in:
parent
fe3def5482
commit
481abce846
@ -174,11 +174,11 @@ 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.requestFullscreen or document.mozRequestFullScreen or document.webkitRequestFullScreen
|
main = $('#main')[0]
|
||||||
|
if typeof main.requestFullscreen isnt 'undefined' or typeof main.mozRequestFullScreen isnt 'undefined' or typeof main.webkitRequestFullScreen isnt 'undefined'
|
||||||
# Enable fullscreen-mode on #main
|
# Enable fullscreen-mode on #main
|
||||||
$('#timsChatFullscreen').click (event) ->
|
$('#timsChatFullscreen').click (event) ->
|
||||||
if $(@).data 'status'
|
if $(@).data 'status'
|
||||||
main = $('#main')[0]
|
|
||||||
if typeof main.requestFullscreen isnt 'undefined'
|
if typeof main.requestFullscreen isnt 'undefined'
|
||||||
main.requestFullscreen()
|
main.requestFullscreen()
|
||||||
else if typeof main.mozRequestFullScreen isnt 'undefined'
|
else if typeof main.mozRequestFullScreen isnt 'undefined'
|
||||||
|
Loading…
Reference in New Issue
Block a user