diff options
author | luxagraf <sng@luxagraf.net> | 2023-07-19 16:13:48 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-07-19 16:13:48 -0500 |
commit | d5710c7fa9b55c69c3415f2d9ef49ae63bee7d2e (patch) | |
tree | d408c2344e4bfde21f90c5e519c4a0d272261adf | |
parent | 54f9e8a401c95dfee97a78efce69aa1f74fc96de (diff) |
posts: cleaned up JS code for URL params
-rw-r--r-- | app/posts/templates/posts/note_form.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/posts/templates/posts/note_form.html b/app/posts/templates/posts/note_form.html index 43b2a06..1ef1bd2 100644 --- a/app/posts/templates/posts/note_form.html +++ b/app/posts/templates/posts/note_form.html @@ -17,10 +17,8 @@ {% block js %} <script type="text/javascript"> let params = new URL(document.location).searchParams; -let url = params.get("url") -let description = params.get("description") document.getElementById('id_title').value = params.get("title"); -document.getElementById('id_url').value = url; -document.getElementById('id_body_markdown').value = description; +document.getElementById('id_url').value = params.get("url"); +document.getElementById('id_body_markdown').value = params.get("description"); </script> {% endblock%} |