Skip to content

Commit

Permalink
Include URL from entry while moving to notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Programie committed Oct 15, 2024
1 parent d2a6d14 commit cc0f7cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# [1.3.0] - 2024-10-15

* Include URL from entry while moving to notes

# [1.2.0] - 2023-10-19

* Retry sending failed notifications with the next trigger
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/assets/script/week-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ class Editor {
return;
}

let url = inputElement.dataset.url.trim();
if (url !== "") {
text = `${text}: ${url}`;
}

let textareaElement = document.querySelector("#notes-sidebar-text") as HTMLTextAreaElement;
textareaElement.value = `${textareaElement.value.trim()}\n${text}\n`;

Expand Down

0 comments on commit cc0f7cf

Please sign in to comment.