Skip to content

Commit

Permalink
[3.2] Bugfix issue #2136 remove asterisk in view mode (#2199)
Browse files Browse the repository at this point in the history
* only add star in edit mode

* respond to QA feedback

* remove cruft
  • Loading branch information
Atticus29 authored Feb 11, 2025
1 parent 28c07b1 commit 827011c
Show file tree
Hide file tree
Showing 2 changed files with 279 additions and 256 deletions.
6 changes: 3 additions & 3 deletions js/symb/taxa.taxonomyeditor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(document).ready(async function () {
const currentRankId = Number(document.getElementById("rankid").value);
showOnlyRelevantFields(currentRankId);
showOnlyRelevantFields(currentRankId, false);

const form = document.getElementById("taxoneditform");
await updateFullname(form);
Expand Down Expand Up @@ -128,9 +128,9 @@ function showOnlyRelevantFields(rankId) {
const selectedOptionText = rankIdSelector.options[optionIdx].text.trim();

// Set the label for "UnitName1" based on the selected option text
label.textContent = selectedOptionText + " Name *: ";
label.textContent = selectedOptionText + " Name: ";
} else {
label.textContent = "Genus Name *: ";
label.textContent = "Genus Name: ";
}

if (Object.values(rankIdsToHideUnit2From).includes(rankId)) {
Expand Down
Loading

0 comments on commit 827011c

Please sign in to comment.