mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
LSdefault : add getCurrentLang() method
This commit is contained in:
parent
2554ab52e8
commit
33b2ba8a87
1 changed files with 7 additions and 0 deletions
|
@ -104,6 +104,13 @@ var LSdefault = new Class({
|
|||
}
|
||||
},
|
||||
|
||||
getCurrentLang: function() {
|
||||
if ($type(this.LSlang)) {
|
||||
return this.LSlang.get('alt');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
onSelectLSlangImgClick: function(img) {
|
||||
window.location='index.php?lang='+img.alt;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue