MediaWiki:Common.js : Différence entre versions
De Wiki levelKro
Ligne 1 : | Ligne 1 : | ||
var img = $('<img>').attr('src', mw.config.get('wgScriptPath') + '/extensions/Avatar/avatar.php?user=' + mw.user.id()); | var img = $('<img>').attr('src', mw.config.get('wgScriptPath') + '/extensions/Avatar/avatar.php?user=' + mw.user.id()); | ||
var link = $('<a>').attr('href', mw.util.getUrl('Special:UploadAvatar')).append(img); | var link = $('<a>').attr('href', mw.util.getUrl('Special:UploadAvatar')).append(img); | ||
− | $('# | + | $('#personal-inner').before($('<li id="pt-avatar"></li>').append(link)); |
Version du 24 janvier 2019 à 05:51
var img = $('<img>').attr('src', mw.config.get('wgScriptPath') + '/extensions/Avatar/avatar.php?user=' + mw.user.id());
var link = $('<a>').attr('href', mw.util.getUrl('Special:UploadAvatar')).append(img);
$('#personal-inner').before($('<li id="pt-avatar"></li>').append(link));