Seditio Source
Root |
./othercms/elxis_5.3_atlas_rev2452/modules/mod_adminlang/js/adminlang.js
function modALangSwitch() {
if (!document.getElementById('modalang_select')) { return; }
var selObj = document.getElementById('modalang_select');
let baselink = selObj.getAttribute('data-baselink');
let deflang = selObj.getAttribute('data-deflang');
let sellang = selObj.options[selObj.selectedIndex].value;
if (deflang == sellang) {
var redirURL = baselink.replace('/xx/', '/');
} else {
var redirURL = baselink.replace('/xx/', '/'+sellang+'/');
}
window.location.href = redirURL;
}