Fix name vs display name?
This commit is contained in:
parent
fadd6700be
commit
5631dcaac4
2 changed files with 4 additions and 4 deletions
|
@ -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
|
* END testing section
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -904,7 +904,7 @@ function displayExpandedIngredient(ingred, parent_id) {
|
||||||
parent_elem.textContent = "";
|
parent_elem.textContent = "";
|
||||||
let display_order = [
|
let display_order = [
|
||||||
"#cdiv",
|
"#cdiv",
|
||||||
"name", //tier will be displayed w/ name
|
"displayName", //tier will be displayed w/ name
|
||||||
"#table",
|
"#table",
|
||||||
"ids",
|
"ids",
|
||||||
"#ldiv",
|
"#ldiv",
|
||||||
|
@ -1007,11 +1007,11 @@ function displayExpandedIngredient(ingred, parent_id) {
|
||||||
}else {
|
}else {
|
||||||
let p_elem = document.createElement("p");
|
let p_elem = document.createElement("p");
|
||||||
p_elem.classList.add("left");
|
p_elem.classList.add("left");
|
||||||
if (command === "name") {
|
if (command === "displayName") {
|
||||||
p_elem.classList.add("title");
|
p_elem.classList.add("title");
|
||||||
p_elem.classList.remove("left");
|
p_elem.classList.remove("left");
|
||||||
let title_elem = document.createElement("b");
|
let title_elem = document.createElement("b");
|
||||||
title_elem.textContent = ingred.get("name");
|
title_elem.textContent = ingred.get("displayName");
|
||||||
p_elem.appendChild(title_elem);
|
p_elem.appendChild(title_elem);
|
||||||
|
|
||||||
let space = document.createElement("b");
|
let space = document.createElement("b");
|
||||||
|
|
Loading…
Reference in a new issue