Browse Source

fix username in userMenu-config reported by genjix

master
Miguel Freitas 11 years ago
parent
commit
5d1c3a2afd
  1. 7
      twister_user.js

7
twister_user.js

@ -35,6 +35,13 @@ function initUser(cbFunc, cbArg) { @@ -35,6 +35,13 @@ function initUser(cbFunc, cbArg) {
if( $localUsersLogin.length ) {
$localUsersLogin.val(defaultScreenName);
}
var $userMenuConfig = $(".userMenu-config");
if( $userMenuConfig.length ) {
$userMenuConfig.find("a.mini-profile-name").attr("href",$.MAL.userUrl(defaultScreenName));
$userMenuConfig.find(".mini-profile-name").text(defaultScreenName);
getFullname( defaultScreenName, $userMenuConfig.find(".mini-profile-name") );
}
}
lastPostId = undefined;
if( cbFunc )

Loading…
Cancel
Save