FS-7509: move code to better place

This commit is contained in:
Anthony Minessale 2015-03-05 12:22:05 -06:00 committed by Michael Jerris
parent c9cccd519a
commit 43eb323631
1 changed files with 2 additions and 3 deletions

View File

@ -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() {
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) {