mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-09 21:44:15 +00:00
annoying unclickable blank names...
This commit is contained in:
parent
170ef96000
commit
060cd78712
@ -204,7 +204,12 @@ function getProfileResource( username, resource, item, cbFunc, cbArg ){
|
|||||||
function getFullname( username, item ){
|
function getFullname( username, item ){
|
||||||
// Set the username first in case the profile has no fullname
|
// Set the username first in case the profile has no fullname
|
||||||
item.text(username);
|
item.text(username);
|
||||||
getProfileResource( username, "fullname", item);
|
getProfileResource( username, "fullname", undefined,
|
||||||
|
function(args, value) {
|
||||||
|
value.replace(/^\s+|\s+$/g, '');
|
||||||
|
if( value.length )
|
||||||
|
args.item.text(value);
|
||||||
|
}, {item: item} );
|
||||||
}
|
}
|
||||||
|
|
||||||
// get bio and store it in item.text
|
// get bio and store it in item.text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user