Fix switching in HTMLized view

This commit is contained in:
Lars Eggert 2023-05-26 16:26:57 +02:00
parent 342e6f58bd
commit f850061dff
No known key found for this signature in database
GPG key ID: 54B5C309BF70C157
2 changed files with 2 additions and 0 deletions

View file

@ -502,6 +502,7 @@ def document_main(request, name, rev=None, document_html=False):
html = doc.html_body()
if request.COOKIES.get("pagedeps") == "inline":
js = Path(finders.find("ietf/js/document_html.js")).read_text()
js += Path(finders.find("ietf/js/theme.js")).read_text()
css = Path(finders.find("ietf/css/document_html_inline.css")).read_text()
if html:
css += Path(finders.find("ietf/css/document_html_txt.css")).read_text()

View file

@ -29,6 +29,7 @@
<link rel="stylesheet" href="{% static 'ietf/css/document_html_txt.css' %}">
{% endif %}
<script src="{% static 'ietf/js/document_html.js' %}"></script>
<script src="{% static 'ietf/js/theme.js' %}"></script>
{% endif %}
<link rel="alternate" type="application/atom+xml" title="Document changes" href="/feed/document-changes/{{ doc.name }}/">
<meta name="description"