commit | fbf7a0a83325cb04f0a87fb1fb0b65a6b1b097be | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Fri May 20 19:51:03 2022 +0200 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Fri May 20 19:51:03 2022 +0200 |
tree | a652753bc8083f664cc7b1555cf2c0c254f2dfe1 | |
parent | 06582354cd6cb644954a63b402eaebac028ac079 [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
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 @@ } 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*/ {