* finish task #8232.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user