diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js index 78cee8d2..c7403393 100644 --- a/korektury/static/korektury/opraf.js +++ b/korektury/static/korektury/opraf.js @@ -98,23 +98,14 @@ function toggle_visibility(oprava){ } } -// show comment form, when 'edit' or 'comment' button pressed -function box_edit(op, action) +// show comment form, when 'comment' button pressed +function comment(op) { var divpointer = document.getElementById(op.id + '-pointer'); - var text; - if (action == 'update') { - var text_el = document.getElementById(op.id + '-text'); - text = text_el.textContent; - - } else { - text = ''; - } - var dx = parseInt(divpointer.style.left); var dy = parseInt(divpointer.style.top); - return show_form(op.img_id, dx, dy, op.dataset.opid, text, action); + return show_form(op.img_id, dx, dy, op.dataset.opid, "", "comment"); } // show comment form when 'update-comment' button pressed diff --git a/korektury/templates/korektury/korekturovatko/__oprava.html b/korektury/templates/korektury/korekturovatko/__oprava.html index a2a9bbce..32c6225f 100644 --- a/korektury/templates/korektury/korekturovatko/__oprava.html +++ b/korektury/templates/korektury/korekturovatko/__oprava.html @@ -49,7 +49,7 @@ -