Čára (pointer) opravy nemá vůbec interagovat s klikáním
This commit is contained in:
parent
2deccfada4
commit
7a4c8239f6
3 changed files with 5 additions and 8 deletions
|
@ -62,12 +62,14 @@ img{background:white;}
|
||||||
|
|
||||||
.pointer {
|
.pointer {
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
--alpha: 0.35;
|
--alpha: 0.35;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pointer-hi {
|
.pointer-hi {
|
||||||
border-width: 3px;
|
border-width: 3px;
|
||||||
--alpha: 1;
|
--alpha: 1;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,9 +43,8 @@ function place_comments_one_div(img_id, comments)
|
||||||
elp.style.top = y ;
|
elp.style.top = y ;
|
||||||
elp.style.width = w - x + w_skip;
|
elp.style.width = w - x + w_skip;
|
||||||
elp.style.height = pointer_min_h + delta_y;
|
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.position = 'absolute';
|
||||||
el.style.left = w + w_skip;
|
el.style.left = w + w_skip;
|
||||||
el.style.top = y + delta_y;
|
el.style.top = y + delta_y;
|
||||||
|
@ -89,10 +88,6 @@ function img_click(element, ev) {
|
||||||
dy = ev.offsetY;
|
dy = ev.offsetY;
|
||||||
}
|
}
|
||||||
var img_id = element.id;
|
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, '', '', '', '');
|
return show_form(img_id, dx, dy, '', '', '', '');
|
||||||
}
|
}
|
||||||
// hide or show text of correction
|
// hide or show text of correction
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<div onclick='img_click(this,event)'
|
<div
|
||||||
id='op{{o.id}}-pointer'
|
id='op{{o.id}}-pointer'
|
||||||
class='pointer'
|
class='pointer'
|
||||||
data-opravastatus="{{o.status}}"
|
data-opravastatus="{{o.status}}"
|
||||||
|
|
Loading…
Reference in a new issue