Fix name vs display name?

This commit is contained in:
b 2021-03-04 05:48:10 -08:00
parent fadd6700be
commit 5631dcaac4
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ console.log(ing_url_tag);
const ING_BUILD_VERSION = "6.9.21";
const ING_BUILD_VERSION = "6.9.22";
/*
* END testing section
*/

View file

@ -904,7 +904,7 @@ function displayExpandedIngredient(ingred, parent_id) {
parent_elem.textContent = "";
let display_order = [
"#cdiv",
"name", //tier will be displayed w/ name
"displayName", //tier will be displayed w/ name
"#table",
"ids",
"#ldiv",
@ -1007,11 +1007,11 @@ function displayExpandedIngredient(ingred, parent_id) {
}else {
let p_elem = document.createElement("p");
p_elem.classList.add("left");
if (command === "name") {
if (command === "displayName") {
p_elem.classList.add("title");
p_elem.classList.remove("left");
let title_elem = document.createElement("b");
title_elem.textContent = ingred.get("name");
title_elem.textContent = ingred.get("displayName");
p_elem.appendChild(title_elem);
let space = document.createElement("b");