mirror of
https://github.com/Spengreb/sync.git
synced 2026-06-10 07:12:05 +00:00
Merge pull request #10 from Spengreb/bugfix/tvmode
Fix bug where if Big Picture mode was set as default layout switching…
This commit is contained in:
commit
1050a15ef6
1 changed files with 9 additions and 0 deletions
|
|
@ -1773,6 +1773,9 @@ function clearTVMessageFadeTimer($msg) {
|
||||||
|
|
||||||
function detectCurrentLayoutName() {
|
function detectCurrentLayoutName() {
|
||||||
var body = $("body");
|
var body = $("body");
|
||||||
|
if (body.hasClass("compact")) {
|
||||||
|
return "compact";
|
||||||
|
}
|
||||||
if (body.hasClass("hd")) {
|
if (body.hasClass("hd")) {
|
||||||
return "hd";
|
return "hd";
|
||||||
}
|
}
|
||||||
|
|
@ -1797,6 +1800,9 @@ function backToNormalLayout(event) {
|
||||||
if (!nextLayout || nextLayout === "tv") {
|
if (!nextLayout || nextLayout === "tv") {
|
||||||
nextLayout = USEROPTS.layout;
|
nextLayout = USEROPTS.layout;
|
||||||
}
|
}
|
||||||
|
if (nextLayout === "default" && USEROPTS.layout === "tv") {
|
||||||
|
nextLayout = "fluid";
|
||||||
|
}
|
||||||
if (!nextLayout || nextLayout === "tv") {
|
if (!nextLayout || nextLayout === "tv") {
|
||||||
nextLayout = "fluid";
|
nextLayout = "fluid";
|
||||||
}
|
}
|
||||||
|
|
@ -1820,6 +1826,9 @@ function backToNormalLayout(event) {
|
||||||
case "hd":
|
case "hd":
|
||||||
hdLayout();
|
hdLayout();
|
||||||
break;
|
break;
|
||||||
|
case "compact":
|
||||||
|
compactLayout();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
compactLayout();
|
compactLayout();
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue