20 lines
576 B
JavaScript
20 lines
576 B
JavaScript
import { hideUpdateModal, showUpdateModal } from "./lines-modal";
|
|
import {
|
|
createLine, deleteLine, getAllItemTypes, getAllColorTypes, getAllLines, updateLine,
|
|
} from "./lines-rest-api";
|
|
import {
|
|
cntrls, createItemsOption, createTableRow, imagePlaceholder,
|
|
} from "./lines-ui";
|
|
|
|
console.log("hi")
|
|
|
|
document.getElementById('item').addEventListener('change', function() {
|
|
|
|
const element = document.getElementById('optionHidden');
|
|
|
|
if (cntrls.itemsType.value == false) {
|
|
element.setAttribute('hidden',true);
|
|
} else {
|
|
element.removeAttribute('hidden');
|
|
}
|
|
}); |