MediaWiki:Gadget-markAdmins.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
chissà se sia più apprezzabile semplicemente più piccino picciò
maintenance: more info TypeError: userPattern.exec(...) is null
Riga 44:
// for each link
$content.find( 'a' ).each( function addPerUserGroups () {
var $link = $( this ), userPatternMatch,
href = $link.attr( 'href' ),
userLink, userName, knownUserGroups, groupShort, groupName, i,
Riga 53:
 
// no sub pages
userLinkuserPatternMatch = userPattern.exec( href )[ 1 ];
if( userLink.indexOf( '/'= )userPatternMatch ===? userPatternMatch[ -1 )] : {null;
if( userLink && userLink.indexOf( '/' ) === -1 ) {
userName = decodeURIComponent( userLink.replace( /\/.*/, '' ).replace( /_/, ' ' ) );
knownUserGroups = response.users[ userName ];