From 33b2ba8a8776cdeb1bee154d4622d1bca108ab2b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 15 Jun 2018 16:09:36 +0200 Subject: [PATCH] LSdefault : add getCurrentLang() method --- public_html/includes/js/LSdefault.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public_html/includes/js/LSdefault.js b/public_html/includes/js/LSdefault.js index b120637f..9e66e255 100644 --- a/public_html/includes/js/LSdefault.js +++ b/public_html/includes/js/LSdefault.js @@ -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;