summaryrefslogtreecommitdiff
path: root/plugins/note
diff options
context:
space:
mode:
authorGreg <supahgreg@users.noreply.github.com>2025-10-14 19:13:51 -0500
committerGitHub <noreply@github.com>2025-10-14 19:13:51 -0500
commit703d310e400f1f4162d4e38afa3f5bf5169c5377 (patch)
treeb4ab637f1b25aae25cd10604468d509bbe26246e /plugins/note
parent73f9d7bd6c8f222145c29c91eeb43ba7c7677496 (diff)
parent6223abef082bc7d2383ecbd4cf42fd280073f5d1 (diff)
Merge pull request #51 from tt-rss/js-proto-extensions-and-misc-cleanup
Remove various JS prototype extensions and alias functions
Diffstat (limited to 'plugins/note')
-rw-r--r--plugins/note/note.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/note/note.js b/plugins/note/note.js
index 00deb0543..98b639358 100644
--- a/plugins/note/note.js
+++ b/plugins/note/note.js
@@ -5,7 +5,7 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
Plugins.Note = {
set_click_handler: function() {
- App.findAll(".article-note[data-note-for]").forEach((note) => {
+ document.querySelectorAll('.article-note[data-note-for]').forEach((note) => {
note.onclick = function() {
Plugins.Note.edit(this.getAttribute('data-note-for'));
}
@@ -23,13 +23,9 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
dialog.hide();
if (reply) {
- App.findAll(`div[data-note-for="${reply.id}"]`).forEach((elem) => {
- elem.querySelector(".body").innerHTML = reply.note;
-
- if (reply.note)
- elem.show();
- else
- elem.hide();
+ document.querySelectorAll(`div[data-note-for="${reply.id}"]`).forEach((elem) => {
+ elem.querySelector('.body').innerHTML = reply.note;
+ reply.note ? elem.show() : elem.hide();
});
}
});