mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Language switcher dropdown javascript uses baseHref() to avoid invalid relative links in IE8 (#4891)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@97210 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cda3d5ae2a
commit
6e09296937
@ -15,7 +15,7 @@ LangSelectorClass.prototype = {
|
|||||||
onchange: function(e, val) {
|
onchange: function(e, val) {
|
||||||
if(this.value != _TRANSLATING_LANG) {
|
if(this.value != _TRANSLATING_LANG) {
|
||||||
_TRANSLATING_LANG = this.value;
|
_TRANSLATING_LANG = this.value;
|
||||||
document.location = 'admin/?locale=' + this.value;
|
document.location = baseHref() + 'admin/?locale=' + this.value;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user