Changeset 20739


Ignore:
Timestamp:
26/02/10 16:11:05 (2 years ago)
Author:
julie
Message:

don't display the dropdown select if there is only one option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bio/webapp/resources/webapp/model/orthologueLinkDisplayer.jsp

    r20737 r20739  
    3636            <td valign="top"><b>Orthologues</b></td> 
    3737            <td valign="top"> 
     38            <span id="orthologueSelect${status.count}" style="float:left;"> 
    3839            <select name="orthologueDatasets" onchange="checkOrthologueMapping('${status.count}', '${mineName}', '${WEB_PROPERTIES['project.title']}');"> 
    3940            <c:forEach var="entry" items="${orthologuesToDatasets}" varStatus="entryStatus"> 
     
    4445                <option value="${localMapping}|${remoteMapping}" <c:if test="${mine.defaultOrganismName == orthologue}">selected</c:if>>${orthologue}</option> 
    4546            </c:forEach> 
    46             </select></td> 
     47            </select> 
     48            </span> 
     49            <%-- if there is only one option, just display organism instead of a dropdown select box --%> 
     50            <span id="orthologueSelectDisplay${status.count}" style="display:none;float:left;"> 
     51            ${mine.defaultOrganismName} 
     52            </span> 
     53            </td> 
    4754        </tr> 
    4855        <tr> 
Note: See TracChangeset for help on using the changeset viewer.