Skip to content

Commit

Permalink
Fixed bug in switching from species to another level
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemSempere committed Oct 9, 2024
1 parent 2705204 commit 236c953
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/webapp/js/moduleListCustomisation.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ function grabNcbiTaxon(inputObj, taxonId)
var taxonDetails = getNcbiTaxonDetails(taxonId), taxonName = taxonDetails['scientificname'], genus = taxonDetails['genus'], species = taxonDetails['species'];
if (taxonName != null && taxonName != '')
$(inputObj).attr('data-id', taxonId);
if (species != null && species != '')
$(inputObj).attr('data-species', genus + " " + species);
$(inputObj).attr('data-species', species != null && species != '' ? (genus + " " + species) : null);

if (typeof setDirty != 'undefined' && $(inputObj).val() != taxonId)
setDirty($(inputObj).closest("tr").attr("id").substring(4), true);
Expand Down

0 comments on commit 236c953

Please sign in to comment.