Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 127b95d0 authored by Robin Tissot's avatar Robin Tissot
Browse files

Fixes quote in document name crashing the editor UI.

parent 704770d5
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,12 @@
{% block body %}
<div id="editor">
<editor :document-id="'{{document.id}}'"
:document-name="'{{document.name}}'"
:part-id="'{{part.id}}'"
:default-text-direction="'{{ document.default_text_direction }}'"
:main-text-direction="'{{ document.main_script.text_direction }}'"
:read-direction="'{{ document.read_direction }}'">
<editor :document-id="'{{document.id}}'"
:document-name="'{{ document.name|escapejs }}'"
:part-id="'{{part.id}}'"
:default-text-direction="'{{ document.default_text_direction }}'"
:main-text-direction="'{{ document.main_script.text_direction }}'"
:read-direction="'{{ document.read_direction }}'">
<a href="{% if object %}{% url 'document-update' pk=document.pk %}{% endif %}" class="nav-item nav-link {% block nav-doc-active %}{% endblock %}" id="nav-doc-tab" role="tab" aria-controls="nav-doc" aria-selected="true">{% trans "Description" %}</a>
<a href="{% if object %}{% url 'document-images' pk=document.pk %}{% else %}#{% endif %}" class="nav-item nav-link {% if not object %}disabled{% endif %} {% block nav-images-active %}{% endblock %}" id="nav-img-tab" role="tab" aria-controls="nav-img" aria-selected="true">{% trans "Images" %}</a>
<a href="{% if document %}{% url 'document-part-edit' pk=document.pk %}{% else %}#{% endif %}" class="nav-item nav-link active {% if not object or not document.parts.count %}disabled{% endif %}" id="nav-edit-tab" role="tab" aria-controls="nav-doc" aria-selected="true">{% trans "Edit" %}</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment