setupTodos using incorrect logic and skipping to-do item.
This commit is contained in:
parent
e52374fa24
commit
5a093f42b0
1 changed files with 3 additions and 2 deletions
|
|
@ -643,13 +643,14 @@ async function setupCalendars() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setupTodos() {
|
async function setupTodos() {
|
||||||
const elems = document.getElementsByClassName("todo");
|
var elems = Array.prototype.slice.call(document.getElementsByClassName("todo"));
|
||||||
if (elems.length == 0) return;
|
if (elems.length == 0) return;
|
||||||
|
|
||||||
const todo = await import ('./todo.js');
|
const todo = await import ('./todo.js');
|
||||||
|
|
||||||
for (let i = 0; i < elems.length; i++)
|
for (let i = 0; i < elems.length; i++){
|
||||||
todo.default(elems[i]);
|
todo.default(elems[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupTruncatedElementTitles() {
|
function setupTruncatedElementTitles() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue