Summary Files Commits Branches @commit @diff @stats
path: root / checklist.html
diff options
context:
space:
mode:
Commitfde7863e53632094c8131394ffc2e57326a58ce6 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-06-22 16:51:13 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-06-22 16:51:13 +0300
Files6db2f1d34bd42a6a0231f7189738ca1290677883 /checklist.html
small-web-utilities-fde7863e53632094c8131394ffc2e57326a58ce6.tar
small-web-utilities-fde7863e53632094c8131394ffc2e57326a58ce6.tar.gz
small-web-utilities-fde7863e53632094c8131394ffc2e57326a58ce6.zip
Parentafe20d73fc79a3131ac0f2ab63f46c4a23e15214 (diff)
[checklist] Fixed opening lists appending to current list
1 files changed, 1 insertions, 1 deletions
-rw-r--r--checklist.html2
diff --git a/checklist.html b/checklist.html
index 19e7b1d..a9e4a39 100644
--- a/checklist.html
+++ b/checklist.html
@@ -334,6 +334,7 @@ span {
var val = store.get(listName);
val.onsuccess = function() {
name.value = listName;
+ lists.innerHTML = '';
parse(val.result.value, lists);
}
}
@@ -370,7 +371,6 @@ span {
var store = db.transaction('CheckLists', 'readwrite').objectStore('CheckLists');
store.put({ name: eiName.value, value: eiValue.value });
}
-
}
</script>
</body>