diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index d79e17ec..a6d6244c 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -126,7 +126,7 @@ function img_click(element, ev) { function toggle_visibility(button){ var divbox = button.parentNode.parentNode.parentNode; var id = divbox.id; - var text = document.getElementById(id+'-text'); + var text = document.getElementById(id+'-body'); if (text.style.display == 'none'){ text.style.display = 'block'; }else { diff --git a/korektury/templates/korektury/opraf.html b/korektury/templates/korektury/opraf.html index 6f83a127..83c997ab 100644 --- a/korektury/templates/korektury/opraf.html +++ b/korektury/templates/korektury/opraf.html @@ -150,6 +150,7 @@ +
{{o.text}}
{% for k in o.komentare %} @@ -178,6 +179,7 @@
{{k.text}}
{% endfor %} + {% endfor %}