summaryrefslogtreecommitdiff
path: root/src/main/resources/META-INF/resources/posts/postList.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/META-INF/resources/posts/postList.js')
-rw-r--r--src/main/resources/META-INF/resources/posts/postList.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/resources/posts/postList.js b/src/main/resources/META-INF/resources/posts/postList.js
new file mode 100644
index 0000000..0578d7b
--- /dev/null
+++ b/src/main/resources/META-INF/resources/posts/postList.js
@@ -0,0 +1,13 @@
+document.addEventListener('DOMContentLoaded', () => {
+ let bookmarkSubmissionPane = document.getElementById('bookmark-submission-pane');
+ if (bookmarkSubmissionPane) {
+ let bookmarkSubmissionForm = document.getElementById('bookmark-submission-form');
+ bookmarkSubmissionPane.addEventListener('opened',() => bookmarkSubmissionForm.focus());
+ }
+
+ let lazychatSubmissionPane = document.getElementById('lazychat-submission-pane');
+ if (lazychatSubmissionPane) {
+ let lazychatSubmissionForm = document.getElementById('lazychat-submission-form');
+ lazychatSubmissionPane.addEventListener('opened',() => lazychatSubmissionForm.focus());
+ }
+});