From 7f71e0d89bbdb6266195cd8ae72259c65abd09a8 Mon Sep 17 00:00:00 2001 From: firebingo Date: Mon, 2 Jul 2018 20:15:15 -0700 Subject: [PATCH] Language selection wasn't being written to local storage. Updated submodule. --- Css/generic.min.css | 2 +- Css/main.css | 2 -- Js/Main.js | 1 + Js/Translations | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Css/generic.min.css b/Css/generic.min.css index fb2a566..08dcf65 100644 --- a/Css/generic.min.css +++ b/Css/generic.min.css @@ -1 +1 @@ -html{font-size:16px;font-family:arial;background-color:#393939;color:rgba(255,255,255,.7)}html body{border-color:rgba(255,255,255,.2)}html body a{color:#0096cf}html body a:not([href]){text-decoration:underline;cursor:pointer}html body .hover-span{color:#0096cf}.fade-in{opacity:0;transition:opacity .5s} \ No newline at end of file +html{font-size:16px;font-family:arial;background-color:#393939;color:rgba(255,255,255,.7)}html body{border-color:rgba(255,255,255,.2)}html body a{color:#0096cf}html body a:not([href]){text-decoration:underline;cursor:pointer}html body .hover-span{color:#0096cf}.fade-in{opacity:0;transition:opacity .5s}.centered{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center} \ No newline at end of file diff --git a/Css/main.css b/Css/main.css index af07dd0..036f6fd 100644 --- a/Css/main.css +++ b/Css/main.css @@ -56,8 +56,6 @@ body { margin: 0; } .flex-grow { flex-grow: 1; } -.centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; } - .hidden { opacity: 0; } .shown { opacity: 0; } diff --git a/Js/Main.js b/Js/Main.js index 0bc6a8e..a6848fa 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -296,6 +296,7 @@ function languageChanged(event) { utage.setTranslationLanguage(selectedLang, missionPath) .then((success) => { buildMissionSelectList(); + localStorage.setItem('language', selectedLang); }); } diff --git a/Js/Translations b/Js/Translations index 5b7839a..ac76005 160000 --- a/Js/Translations +++ b/Js/Translations @@ -1 +1 @@ -Subproject commit 5b7839ae9b5e47b5bd29d64c06c22a3b000d8959 +Subproject commit ac76005f743abacf912f32ae964397e4d9d34fb7