MCPcopy Create free account
hub / github.com/codemistic/Web-Development / edit

Method edit

To-Do List/Task Schedule List/main.js:46–56  ·  view source on GitHub ↗
(input, name)

Source from the content-addressed store, hash-verified

44 }
45
46 edit(input, name){
47 if(input.disabled == true){
48 input.disabled = !input.disabled;
49 }
50 else{
51 input.disabled = !input.disabled;
52 let indexof = todos.indexOf(name);
53 todos[indexof] = input.value;
54 window.localStorage.setItem("todos", JSON.stringify(todos));
55 }
56 }
57
58 remove(itemBox, name){
59 itemBox.parentNode.removeChild(itemBox);

Callers 2

createItemMethod · 0.95
iFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected