Fix some enhancements & new features
This commit is contained in:
12
build/js/include/core/lang.js
Normal file
12
build/js/include/core/lang.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function initLangSelector() {
|
||||
$('.language-choice').click(function() {
|
||||
var lang = $(this).data('lang');
|
||||
var url = laroute.route('language', {lang:lang});
|
||||
window.location = url;
|
||||
});
|
||||
}
|
||||
|
||||
function getLang() {
|
||||
return $('#language-btn').attr('data-current-lang');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user