diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2022-05-13 14:16:45 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2022-05-18 21:45:51 +0200 |
commit | b40f465b795cf06f9b8990f174051406ce25390f (patch) | |
tree | 3f68370a94af1181e536c16a795a057d771d1f18 /src | |
parent | f544d73ce92b9fea3b57ba6fe70c17d110fe67bf (diff) |
KB118 MlkBookmarkSubmissionForm: Set descriptionInput.{innerText => value}.
Change-Id: Ie500e369fa414039bcb1a35aab6fcf456d84956c
Diffstat (limited to 'src')
-rw-r--r-- | src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js index b4d21d3..84054d0 100644 --- a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js +++ b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js @@ -85,9 +85,6 @@ 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*/ { @@ -145,7 +142,6 @@ export class MlkBookmarkSubmissionForm extends HTMLElement { this.uriSpinner.hidden = false; this.uriSpinner.playing = true; let searchParams = new URLSearchParams({'uri': this.uriInput.value}); - console.log(`/bookmarks/page-info?${searchParams.toString()}`); let fetchUrl = new URL(`/bookmarks/page-info?${searchParams.toString()}`, document.URL); let r = await fetch(fetchUrl, {headers: {"accept": "application/json"}}); this.uriSpinner.hidden = true; @@ -176,7 +172,7 @@ export class MlkBookmarkSubmissionForm extends HTMLElement { this.visibilityInput.value = post.visibility; if (post.texts['']) { this.titleInput.value = post.texts[''].title; - this.descriptionInput.innerText = post.texts[''].description; + this.descriptionInput.value = post.texts[''].description; } this.loaded = true; |