Changeset 20775
Legend:
- Unmodified
- Added
- Removed
-
trunk/bio/webapp/src/org/intermine/bio/web/logic/OrthologueConverter.java
r20773 r20775 88 88 List<ResultElement> row = it.next(); 89 89 String orthologue = row.get(0).getField().toString(); 90 if (orthologues != null) {90 if (orthologues.length() > 0) { 91 91 orthologues.append(","); 92 92 } 93 93 orthologues.append(orthologue); 94 }95 if (orthologues == null) {96 return null;97 94 } 98 95 return orthologues.toString(); -
trunk/intermine/webapp/main/resources/webapp/js/imdwr.js
r20767 r20775 803 803 // convert orthologues then post 804 804 if (myForm.orthologueMapping[1].checked) { 805 alert("converting!"); 805 806 // convert orthologues 806 807 AjaxServices.convertObjects(bagType, bagName, 'orthologue', selectedOrganism, function(identifiers) { 808 alert("converted!"); 807 809 if (identifiers != null && identifiers != '') { 808 810 myForm.externalids.value = identifiers; 811 alert(myForm.externalids.value); 809 812 myForm.orthologue.disabled = true; 810 813 myForm.submit(); … … 828 831 var selectedOrganism = orthologueSelect.options[orthologueSelect.selectedIndex].text; 829 832 myForm.orthologue.value = selectedOrganism; 833 var selectLocal = false; 830 834 831 835 // hide/show the radio button and name of intermine if they do/don't have orthologues … … 840 844 display('orthologueMappingRemoteRadio' + statusCount, false); 841 845 display('orthologueMappingLocalRadio' + statusCount, false); 846 // check hidden radio button so that `local` mine is selected 847 // radio button is hidden but script needs this value to be checked 848 myForm.orthologueMapping[0].checked = false; 849 myForm.orthologueMapping[1].checked = true; 842 850 } 843 851 } else { … … 847 855 display('orthologueMappingRemoteRadio' + statusCount, false); 848 856 display('orthologueMappingLocalRadio' + statusCount, false); 849 } 857 //check hidden radio button so that `remote` mine is selected 858 // radio button is hidden but script needs this value to be checked 859 myForm.orthologueMapping[0].checked = true; 860 myForm.orthologueMapping[1].checked = false; 861 } 862 850 863 // if there is only one option, don't show a dropdown 851 864 // if (orthologueSelect.length == 1) {
Note: See TracChangeset
for help on using the changeset viewer.
