Browse Source

annoying unclickable blank names...

master
Miguel Freitas 11 years ago
parent
commit
060cd78712
  1. 7
      twister_io.js

7
twister_io.js

@ -204,7 +204,12 @@ function getProfileResource( username, resource, item, cbFunc, cbArg ){ @@ -204,7 +204,12 @@ function getProfileResource( username, resource, item, cbFunc, cbArg ){
function getFullname( username, item ){
// Set the username first in case the profile has no fullname
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

Loading…
Cancel
Save