* finish task #8232.

This commit is contained in:
z
2020-11-04 10:27:35 +08:00
parent 4ea37d68a2
commit 4ebb150e82
+5 -2
View File
@@ -32,8 +32,11 @@
<script>
function switchLang(lang)
{
document.cookie = "lang=" + lang;
location.href = window.location.protocol+"//"+window.location.host;
pathName = location.pathname;
pathName = pathName.substring(0, pathName.lastIndexOf ('/') + 1);
document.cookie = "lang=" + lang + "; path=" + pathName;
location.href = window.location.protocol + "//" + window.location.host + pathName;
}
</script>
</body>