summaryrefslogtreecommitdiff
path: root/src/main/resources/META-INF
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-12 05:30:42 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-12 05:30:42 +0100
commit8b7cfaaac98a815195a17b5e28111a65be0791ab (patch)
tree2a8e08e99f68ab19c357343a60615a0f1aecf5b4 /src/main/resources/META-INF
parent92c0c3c0ff63b1de91d5b66746651b7feef8096c (diff)
Bookmark submission: Rearrange fields, focus URI field on pane expansion.
Change-Id: I2c440905a39ea0126fa6b1024fa7b54e80a59b1a
Diffstat (limited to 'src/main/resources/META-INF')
-rw-r--r--src/main/resources/META-INF/resources/bookmarks/bookmarkList.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/resources/bookmarks/bookmarkList.js b/src/main/resources/META-INF/resources/bookmarks/bookmarkList.js
new file mode 100644
index 0000000..eab07f5
--- /dev/null
+++ b/src/main/resources/META-INF/resources/bookmarks/bookmarkList.js
@@ -0,0 +1,5 @@
+document.addEventListener('DOMContentLoaded', () => {
+ let bookmarkSubmissionPane = document.getElementById('bookmark-submission-pane');
+ let uriInput = document.getElementById('uri-input');
+ bookmarkSubmissionPane.addEventListener('opened', () => uriInput.focus());
+}); \ No newline at end of file