NIHVIVO-634: Fixed style issues in 'browse by' section for individuals with no thumb images

This commit is contained in:
mb863 2011-01-18 00:16:55 +00:00
parent 75d45dfc5b
commit c41f121235
2 changed files with 18 additions and 23 deletions

View file

@ -78,11 +78,14 @@ var browseByVClass = {
}
// Build the content of each list item, piecing together each component
listItem = '<li class="individual" role="listitem" role="navigation">';
if ( typeof image !== "undefined" ) {
if ( typeof results.individuals[i].thumbUrl !== "undefined" ) {
listItem += '<img src="'+ image +'" width="90" height="90" alt="'+ label +'" />';
listItem += '<h1><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
}else {
listItem += '<h1 class="no-thumb"><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
}
listItem += '<h1><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
if ( moniker != vclassName && moniker != "" ) {
listItem += '<p>'+ moniker +'</p>';
}