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,14 +643,15 @@ async function setupCalendars() {
|
|||
}
|
||||
|
||||
async function setupTodos() {
|
||||
const elems = document.getElementsByClassName("todo");
|
||||
var elems = Array.prototype.slice.call(document.getElementsByClassName("todo"));
|
||||
if (elems.length == 0) return;
|
||||
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
function setupTruncatedElementTitles() {
|
||||
const elements = document.querySelectorAll(".text-truncate, .single-line-titles .title, .text-truncate-2-lines, .text-truncate-3-lines");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue