Changeset 20737


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

use correct default values

Location:
trunk
Files:
2 edited

Legend:

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

    r20728 r20737  
    1717    <td align="right"> 
    1818        <c:if test="${!empty imageName}"> 
    19          <a href="#orthologue_link_${status.count}" title="${mineName}" class="boxy" > 
     19         <a href="#orthologue_link_${status.count}" onclick="checkOrthologueMapping('${status.count}', '${mineName}', '${WEB_PROPERTIES['project.title']}');" title="${mineName}" class="boxy" > 
    2020               <html:img src="model/images/${imageName}" title="${mineName}"/> 
    2121         </a> 
     
    2323    </td> 
    2424    <td> 
    25         <a href="#orthologue_link_${status.count}" title="${mineName}" class="boxy" > 
     25        <a href="#orthologue_link_${status.count}" onclick="checkOrthologueMapping('${status.count}', '${mineName}', '${WEB_PROPERTIES['project.title']}');" title="${mineName}" class="boxy" > 
    2626            ${mineName}&nbsp;<img src="images/ext_link.png" title="${mineName}"/> 
    2727        </a> 
     
    3636            <td valign="top"><b>Orthologues</b></td> 
    3737            <td valign="top"> 
    38             <select name="orthologueDatasets" onchange="checkOrthologueMapping('${status.count}', this.options[this.selectedIndex].value, '${mineName}', '${WEB_PROPERTIES['project.title']}');"> 
     38            <select name="orthologueDatasets" onchange="checkOrthologueMapping('${status.count}', '${mineName}', '${WEB_PROPERTIES['project.title']}');"> 
    3939            <c:forEach var="entry" items="${orthologuesToDatasets}" varStatus="entryStatus"> 
    4040                <c:set var="orthologue" value="${entry.key}"/> 
  • trunk/intermine/webapp/main/resources/webapp/js/imdwr.js

    r20728 r20737  
    790790    var orthologueSelect = myForm.orthologueDatasets; 
    791791    var selectedOrganism = orthologueSelect.options[orthologueSelect.selectedIndex].text; 
    792      
     792 
    793793    // use remote mapping, just post the original list 
    794794    if (myForm.orthologueMapping[0].checked) { 
     
    818818} 
    819819 
    820 function checkOrthologueMapping(statusCount, datasets, remoteMine, localMine) { 
     820function checkOrthologueMapping(statusCount, remoteMine, localMine) { 
     821    var myForm = document.forms['orthologueLinkForm' + statusCount]; 
     822    var orthologueSelect = myForm.orthologueDatasets; 
     823    var datasets = orthologueSelect.options[orthologueSelect.selectedIndex].value; 
    821824    var bits = datasets.split("|"); 
    822825    var localMapping = bits[0]; 
    823826    var remoteMapping = bits[1]; 
    824     var myForm = document.forms['orthologueLinkForm' + statusCount]; 
    825     var orthologueSelect = myForm.orthologueDatasets; 
    826  
    827827    var selectedOrganism = orthologueSelect.options[orthologueSelect.selectedIndex].text; 
    828828    myForm.orthologue.value = selectedOrganism; 
Note: See TracChangeset for help on using the changeset viewer.