LSdefault : add getCurrentLang() method

This commit is contained in:
Benjamin Renard 2018-06-15 16:09:36 +02:00
parent 2554ab52e8
commit 33b2ba8a87

View file

@ -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;