From e66f8c43be3a4f211182dba355ec7be078b090d6 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Sat, 9 Jan 2016 14:08:54 +0100 Subject: [PATCH] Skryvani korektur. --- korektury/static/korektury/imgs/hide.png | Bin 0 -> 270 bytes korektury/static/korektury/opraf.js | 14 ++++++++++++++ korektury/templates/korektury/opraf.html | 11 ++++++++++- korektury/templates/korektury/seznam.html | 2 +- korektury/views.py | 20 ++++++++++---------- 5 files changed, 35 insertions(+), 12 deletions(-) create mode 100644 korektury/static/korektury/imgs/hide.png diff --git a/korektury/static/korektury/imgs/hide.png b/korektury/static/korektury/imgs/hide.png new file mode 100644 index 0000000000000000000000000000000000000000..bcaeec04c6440a7a42febd3825cfce7ae4e79ed8 GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj$Z!;#Vf2?p zUk71ECym(^Ktah8*NBqf{Irtt#G+J&^73-M%)IR4WwV~s;RkXt^KT}Ivk3OwO7ZzOWv9Uj*}2)m@fI(w z-yeVY;j_txBNAsl?j2&@?ooD}%j$+mx8`Oy>n&e5cu&~=V&A+g>mxTEU+_v@S?2x; zcAnKw4u~x8s5$mzvdoDI)1Ppsl|DVdbbXPA_tewV&+MQ2zg1m#vE7@e9LgF%XEAuX L`njxgN@xNAVJBs@ literal 0 HcmV?d00001 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 %}