MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / updateItem

Function updateItem

assets/js/DragToDo.js:108–119  ·  view source on GitHub ↗
(id, column)

Source from the content-addressed store, hash-verified

106
107// Update Item - Delete if necessary, or update Array value
108function updateItem(id, column) {
109 const selectedArray = listArrays[column];
110 const selectedColumn = listColumns[column].children;
111 if (!dragging) {
112 if (!selectedColumn[id].textContent) {
113 delete selectedArray[id];
114 } else {
115 selectedArray[id] = selectedColumn[id].textContent;
116 }
117 updateDOM();
118 }
119}
120
121// Add to Column List, Reset Textbox
122function addToColumn(column) {

Callers

nothing calls this directly

Calls 1

updateDOMFunction · 0.70

Tested by

no test coverage detected