Display: reset dashboard tiles when switching language

This commit is contained in:
bergware
2023-10-17 14:55:03 +02:00
parent 9a97d3087d
commit 75c1c8a7a0
2 changed files with 19 additions and 2 deletions
@@ -30,6 +30,14 @@ function LanguageButton() {
switchLanguage($.cookie('locale'));
$.removeCookie('locale');
}
// reset dashboard tiles when switching language
if (locale != ($.cookie('locale')||'')) {
$.removeCookie('db-box1');
$.removeCookie('db-box2');
$.removeCookie('db-box3');
$.removeCookie('inactive_content');
$.removeCookie('hidden_content');
}
}
function switchLanguage(lang) {