updated taskList.js
This commit is contained in:
parent
5936575888
commit
2a6aa38563
1 changed files with 6 additions and 2 deletions
|
|
@ -457,7 +457,9 @@ function markTaskDone(username, task) {
|
|||
task = tasks[username].todos[index].text;
|
||||
tasks[username].todos[index].done = true;
|
||||
localStorage.setItem(`tasks`, JSON.stringify(tasks));
|
||||
renderTaskListToDOM();
|
||||
if (!scrolling) {
|
||||
renderTaskListToDOM();
|
||||
}
|
||||
return {
|
||||
markedTasks: task,
|
||||
failedTasks: "",
|
||||
|
|
@ -548,7 +550,9 @@ function markTaskUndone(username, task) {
|
|||
|
||||
tasks[username].todos[index].done = false;
|
||||
localStorage.setItem(`tasks`, JSON.stringify(tasks));
|
||||
renderTaskListToDOM();
|
||||
if (!scrolling) {
|
||||
renderTaskListToDOM();
|
||||
}
|
||||
return {
|
||||
markedTasks: tasks[username].todos[index].text,
|
||||
failedTasks: "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue