Open main menu
Home
Random
Log in
Settings
About wiki
Terms and conditions of use
wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 21:44, 18 April 2018
216 bytes added
,
21:44, 18 April 2018
no edit summary
Line 68:
Line 68:
$(document).ready(function() {
$(document).ready(function() {
console.log('ready');
console.log('ready');
−
$('
body
').on("click", ".uls-language-block a", function() {
+
$('
html
').on("click", ".uls-language-block a
.autonym
", function() {
−
console.log('
clicked
');
+
console.log('
clicked1
');
var lang = $(this).attr('lang');
var lang = $(this).attr('lang');
+
console.log(lang);
+
setCookie('lang', lang);
+
});
+
$('html').on("click", ".uls-language-block li", function() {
+
console.log('clicked2');
+
var lang = $(this).data('code');
console.log(lang);
console.log(lang);
setCookie('lang', lang);
setCookie('lang', lang);
});
});
});
});
Mark.wooff
Bureaucrats
,
Administrators
55
edits