diff --git a/korektury/static/korektury/opraf.css b/korektury/static/korektury/opraf.css index 69b32636..4353b679 100644 --- a/korektury/static/korektury/opraf.css +++ b/korektury/static/korektury/opraf.css @@ -62,12 +62,14 @@ img{background:white;} .pointer { border-width: 1px; - --alpha: 0.35; + --alpha: 0.35; + pointer-events: none; } .pointer-hi { border-width: 3px; --alpha: 1; + pointer-events: none; } diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index 7e22bfad..d4982f29 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -43,9 +43,8 @@ function place_comments_one_div(img_id, comments) elp.style.top = y ; elp.style.width = w - x + w_skip; elp.style.height = pointer_min_h + delta_y; - elp.img_id = img_id; - el.img_id = img_id; + el.img_id = img_id; el.style.position = 'absolute'; el.style.left = w + w_skip; el.style.top = y + delta_y; @@ -89,10 +88,6 @@ function img_click(element, ev) { dy = ev.offsetY; } var img_id = element.id; - if( element.img_id != null ) { - // click was to '-pointer' - img_id = element.img_id; - } return show_form(img_id, dx, dy, '', '', '', ''); } // hide or show text of correction diff --git a/korektury/templates/korektury/korekturovatko/__oprava.html b/korektury/templates/korektury/korekturovatko/__oprava.html index 63cc530f..361c5a77 100644 --- a/korektury/templates/korektury/korekturovatko/__oprava.html +++ b/korektury/templates/korektury/korekturovatko/__oprava.html @@ -1,6 +1,6 @@ {% load static %} -