Skip to content

Commit f850061

Browse files
committed
Fix switching in HTMLized view
1 parent 342e6f5 commit f850061

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ def document_main(request, name, rev=None, document_html=False):
502502
html = doc.html_body()
503503
if request.COOKIES.get("pagedeps") == "inline":
504504
js = Path(finders.find("ietf/js/document_html.js")).read_text()
505+
js += Path(finders.find("ietf/js/theme.js")).read_text()
505506
css = Path(finders.find("ietf/css/document_html_inline.css")).read_text()
506507
if html:
507508
css += Path(finders.find("ietf/css/document_html_txt.css")).read_text()

ietf/templates/doc/document_html.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<link rel="stylesheet" href="{% static 'ietf/css/document_html_txt.css' %}">
3030
{% endif %}
3131
<script src="{% static 'ietf/js/document_html.js' %}"></script>
32+
<script src="{% static 'ietf/js/theme.js' %}"></script>
3233
{% endif %}
3334
<link rel="alternate" type="application/atom+xml" title="Document changes" href="/feed/document-changes/{{ doc.name }}/">
3435
<meta name="description"

0 commit comments

Comments
 (0)