提交 43eb3236 authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Michael Jerris

FS-7509: move code to better place

上级 c9cccd51
...@@ -526,9 +526,10 @@ function on_full(which) ...@@ -526,9 +526,10 @@ function on_full(which)
is_full = which; is_full = which;
if (is_full) { if (is_full) {
$("#rows").css("position", "absolute").css("z-index", "2"); $("#rows").css("position", "absolute").css("z-index", "2");
$("#fullbtn").text("Exit Full Screen");
} else { } else {
$("#rows").css("position", "static").css("z-index", "2"); $("#rows").css("position", "static").css("z-index", "2");
$("#fullbtn").text("Enter Full Screen");
clearTimeout(usrto); clearTimeout(usrto);
} }
...@@ -549,9 +550,7 @@ $("#fullbtn").click(function() { ...@@ -549,9 +550,7 @@ $("#fullbtn").click(function() {
if (!is_full) { if (!is_full) {
full_screen("fs"); full_screen("fs");
$("#fullbtn").text("Exit Full Screen");
} else { } else {
$("#fullbtn").text("Enter Full Screen");
if (document.webkitFullscreenEnabled) { if (document.webkitFullscreenEnabled) {
document.webkitExitFullscreen(); document.webkitExitFullscreen();
} else if (document.mozFullScreenEnabled) { } else if (document.mozFullScreenEnabled) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论