Skip to content
Snippets Groups Projects
Commit a08845c6afbe authored by vitidev's avatar vitidev
Browse files

host independent language selector

parent 835caa3b466f
No related branches found
No related tags found
1 merge request!8host independent language selector
Pipeline #9054 passed with stage
in 32 seconds
/* *** Language Selector *** */
$('.headerWrapper select').change(function(){
var url = 'http://tortoisehg.org/';
var url = window.location.protocol.concat('//').concat(window.location.hostname).concat('/');
var lang = $(this).val();
if (lang != 'en') {
if (lang !== 'en') {
url += lang + '/';
}
window.location.href = url;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment