summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2025-04-07 19:52:45 -0500
committerluxagraf <sng@luxagraf.net>2025-04-07 19:52:45 -0500
commit2361b9c561a42e4565654d201bafee39ade3e0db (patch)
treef239562542f951856d31d2e362cc40d4dd2eb082
parentcb7916afb02fae346181f7aa7decbe39b0e3dfb9 (diff)
notes: bug fixes for template
-rw-r--r--app/notes/templates/note_form.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/notes/templates/note_form.html b/app/notes/templates/note_form.html
index 9c8ac37..3924d48 100644
--- a/app/notes/templates/note_form.html
+++ b/app/notes/templates/note_form.html
@@ -27,13 +27,11 @@ form .selector label {
{% endblock %}
{% block js %}
<script type="text/javascript">
-var options = {searchable: true};
-NiceSelect.bind(document.getElementById("id_project"), options);
- {% if is_update %}{%else%}
+{% if is_update %}{%else%}
let params = new URL(document.location).searchParams;
document.getElementById('id_title').value = params.get("title");
document.getElementById('id_url').value = params.get("url");
-document.getElementById('id_body_markdown').value = params.get("description");
+document.getElementById('id_description').value = params.get("description");
{% endif %}
</script>
{% endblock%}