summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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%}