summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-05-20 19:51:03 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-05-20 19:51:03 +0200
commitfbf7a0a83325cb04f0a87fb1fb0b65a6b1b097be (patch)
treea652753bc8083f664cc7b1555cf2c0c254f2dfe1 /src/main
parent06582354cd6cb644954a63b402eaebac028ac079 (diff)
MlkBookmarkSubmissionForm: Add initializers back.
The initializers were mistakenly removed, but they are needed for bookmarklet-driven bookmark submission. This adds them back. Change-Id: I565e5b3f372da826224d96dddf568295af552744
Diffstat (limited to 'src/main')
-rw-r--r--src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
index 84054d0..83242ba 100644
--- a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
+++ b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
@@ -85,6 +85,9 @@ export class MlkBookmarkSubmissionForm extends HTMLElement {
}
this.uriInput.addEventListener('blur', this.onUriBlur.bind(this));
+ this.uriInput.value = this.uri || "";
+ this.titleInput.value = this.titleText || "";
+ this.descriptionInput.innerText = this.description || "";
}
get editedId() /*:number | null*/ {