diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index 2a88054b..f566086e 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -119,16 +119,16 @@ function update_comment(oid,ktid) return show_form(divbox.img_id, dx, dy, ktid.substring(2), text, 'update-comment'); } -function box_onmouseover(box) +function oprava_onmouseover(op) { - var pointer = box.pointer; + var pointer = op.pointer; pointer.classList.remove('pointer'); pointer.classList.add('pointer-hi'); } -function box_onmouseout(box) +function oprava_onmouseout(op) { - var pointer = box.pointer; + var pointer = op.pointer; pointer.classList.remove('pointer-hi'); pointer.classList.add('pointer'); } diff --git a/korektury/templates/korektury/korekturovatko/__oprava.html b/korektury/templates/korektury/korekturovatko/__oprava.html index c2a29503..b8a48452 100644 --- a/korektury/templates/korektury/korekturovatko/__oprava.html +++ b/korektury/templates/korektury/korekturovatko/__oprava.html @@ -11,8 +11,8 @@ data-opravastatus="{{o.status}}" data-opravazobrazit="true" data-opid="{{o.id}}" - onmouseover='box_onmouseover(this)' - onmouseout='box_onmouseout(this)' + onmouseover='oprava_onmouseover(this)' + onmouseout='oprava_onmouseout(this)' >