diff --git a/korektury/static/korektury/imgs/hide.png b/korektury/static/korektury/imgs/hide.png new file mode 100644 index 00000000..bcaeec04 Binary files /dev/null and b/korektury/static/korektury/imgs/hide.png differ diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index d39c0797..d79e17ec 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -122,6 +122,20 @@ function img_click(element, ev) { } return show_form(img_id, dx, dy, '', '', '', ''); } +// hide or show text of correction +function toggle_visibility(button){ + var divbox = button.parentNode.parentNode.parentNode; + var id = divbox.id; + var text = document.getElementById(id+'-text'); + if (text.style.display == 'none'){ + text.style.display = 'block'; + }else { + text.style.display = 'none'; + } + for (var i=0;i + +
{{o.text}}
@@ -178,9 +182,14 @@ {% endfor %}