Merge branch 'main' into refactor/byline
This commit is contained in:
commit
540531a711
20
main.js
20
main.js
|
@ -1107,22 +1107,16 @@ function downloadnotes()
|
|||
|
||||
function inserttodo()
|
||||
{
|
||||
filter.placeholder = "Text...";
|
||||
filter.value = "";
|
||||
filteredlist.hidden = true;
|
||||
searchdialog.hidden = false;
|
||||
filter.focus();
|
||||
filter.select();
|
||||
|
||||
filter.onkeydown = function()
|
||||
var text = prompt("Text:");
|
||||
if (text)
|
||||
{
|
||||
if (event.key === "Enter")
|
||||
var todo = getnote("todo");
|
||||
todo.content += "\n" + text;
|
||||
if (todo == currentnote)
|
||||
{
|
||||
event.preventDefault();
|
||||
searchdialog.hidden = true;
|
||||
getnote("todo").content += "\n" + filter.value;
|
||||
datachanged();
|
||||
seteditorcontent(todo.content, true);
|
||||
}
|
||||
datachanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue