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:25, 18 April 2018
1 byte added
,
21:25, 18 April 2018
no edit summary
Line 23:
Line 23:
}).done(function (data){
}).done(function (data){
console.log(data.query.userinfo);
console.log(data.query.userinfo);
−
var
username
= data.query.userinfo.
name
;
+
var
userid
= data.query.userinfo.
id
;
var currentLang = data.query.userinfo.options.language;
var currentLang = data.query.userinfo.options.language;
−
if(username && lang && lang != currentLang){
+
if(username
!= 0
&& lang && lang != currentLang){
$.ajax({
$.ajax({
url: 'api.php',
url: 'api.php',
Mark.wooff
Bureaucrats
,
Administrators
55
edits