User:Ahecht/useridentifier.js: Difference between revisions
From Test Wiki
Content deleted Content added
Remove global lookup, since that doesn't work here |
Restore to as close to original as possible |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 51: | Line 51: | ||
globaluserinfo=r.query.globaluserinfo; |
globaluserinfo=r.query.globaluserinfo; |
||
} |
} |
||
if(!users |
if(!users || !lastedit) return; |
||
r=users; |
r=users; |
||
if(r.name!=name) return; |
if(r.name!=name) return; |
||
| Line 95: | Line 95: | ||
d2.title+='\nGroups: '+r.groups.join(', '); |
d2.title+='\nGroups: '+r.groups.join(', '); |
||
} |
} |
||
if(globaluserinfo.groups && globaluserinfo.groups.length>0){ |
if(globaluserinfo !== null && globaluserinfo.groups && globaluserinfo.groups.length>0){ |
||
d.appendChild(document.createElement('BR')); |
d.appendChild(document.createElement('BR')); |
||
d.appendChild(document.createTextNode('Global groups: '+globaluserinfo.groups.join(', '))); |
d.appendChild(document.createTextNode('Global groups: '+globaluserinfo.groups.join(', '))); |
||
| Line 150: | Line 150: | ||
list:'users', |
list:'users', |
||
ususers:name, |
ususers:name, |
||
usprop:'editcount|groups|registration|emailable|gender' |
usprop:'editcount|groups|registration|emailable|gender', |
||
meta:'globaluserinfo', |
|||
guiuser:name, |
|||
guiprop:'groups' |
|||
}, |
}, |
||
success:cb, |
success:cb, |
||