11 lines
318 B
JavaScript
11 lines
318 B
JavaScript
function MakeUpdateQuantityButtonVisible(id, visible)
|
|
{
|
|
const updateQuantityButton = document.querySelector("button[data-itemId='" + id + "']");
|
|
|
|
if (visible == true) {
|
|
updateQuantityButton.style.display = "inline-block";
|
|
}
|
|
else {
|
|
updateQuantityButton.style.display = "none";
|
|
}
|
|
} |