Skip to content
Snippets Groups Projects
Commit 4524d798 authored by omaarfa's avatar omaarfa
Browse files

Add classes to order elements (pizzaLegend and orderLegend) created for stylesheet use

parent 9610a9af
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,7 @@ function buildOrder(parentNode, id, pizzaObj) {
let orderLegend = document.createElement("legend");
orderLegend.id = id + ".legend";
orderLegend.innerText = "Bestellung " + id;
orderLegend.className = "orderLegend";
orderMainNode.append(orderLegend);
buildPizza(orderMainNode, pizzaObj);
......@@ -122,6 +123,7 @@ function buildPizza(orderMainNode, pizzaObj) {
pizzaNode.id = "pizzaNode." + orderedArticleID;
pizzaNode.className = "pizzaFieldset";
pizzaLegend.innerText = "Pizza " + pizzaName;
pizzaLegend.className = "pizzaLegend";
pizzaNode.append(pizzaLegend);
buildInputs(pizzaNode, orderedArticleID, pizzaStatus);
orderMainNode.append(pizzaNode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment