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

@ -104,6 +104,13 @@ var LSdefault = new Class({
} }
}, },
getCurrentLang: function() {
if ($type(this.LSlang)) {
return this.LSlang.get('alt');
}
return false;
},
onSelectLSlangImgClick: function(img) { onSelectLSlangImgClick: function(img) {
window.location='index.php?lang='+img.alt; window.location='index.php?lang='+img.alt;
}, },