mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 06:23:48 +01:00
LSdefault : add getCurrentLang() method
This commit is contained in:
parent
2554ab52e8
commit
33b2ba8a87
1 changed files with 7 additions and 0 deletions
|
@ -103,6 +103,13 @@ var LSdefault = new Class({
|
|||
this.LSlang_open = 0;
|
||||
}
|
||||
},
|
||||
|
||||
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