diff --git a/korektury/static/korektury/opraf.js b/korektury/static/korektury/opraf.js
index eb319459..d299b56e 100644
--- a/korektury/static/korektury/opraf.js
+++ b/korektury/static/korektury/opraf.js
@@ -65,30 +65,6 @@ function place_comments() {
}
}
-// ctrl-enter submits form
-function textarea_onkey(ev)
-{
- if( (ev.keyCode == 13 || ev.keyCode == 10 ) && ev.ctrlKey ) {
- var form = document.getElementById('commform');
- if( form ) {
- form.submit();
- }
- return true;
- }
- return false;
-}
-
-//hide comment form
-function close_commform() {
- var formdiv = document.getElementById('commform-div');
- if( formdiv == null ) {
- alert("form null");
- return true;
- }
- formdiv.style.display = 'none';
- return false;
-}
-
// show comment form, when clicked to image
function img_click(element, ev) {
var body_class = document.body.className;
@@ -172,47 +148,6 @@ function update_comment(oid,ktid)
return show_form(divbox.img_id, dx, dy, ktid.substring(2), text, 'update-comment');
}
-//fill up comment form and show him
-function show_form(img_id, dx, dy, id, text, action) {
- var form = document.getElementById('commform');
- var formdiv = document.getElementById('commform-div');
- var textarea = document.getElementById('commform-text');
- var inputX = document.getElementById('commform-x');
- var inputY = document.getElementById('commform-y');
- var inputImgId = document.getElementById('commform-img-id');
- var inputId = document.getElementById('commform-id');
- var inputAction = document.getElementById('commform-action');
- var img = document.getElementById(img_id);
-
- if( formdiv == null || textarea == null ) {
- alert("form null");
- return 1;
- }
-
- //form.action = "#" + img_id;
-
- // set hidden values
- inputX.value = dx;
- inputY.value = dy;
- inputImgId.value = img_id;
- inputId.value = id;
- inputAction.value = action;
- textarea.value = text;
-
- //textarea.value = "dxy:"+ dx + "x" + dy + "\n" + 'id:' + img_id;
-
- // show form
- formdiv.style.display = 'block';
- formdiv.style.left = dx;
- formdiv.style.top = dy;
-
- img.parentNode.appendChild(formdiv);
-
- textarea.focus();
-
- return true;
-}
-
function box_onmouseover(box)
{
var pointer = document.getElementById(box.id + '-pointer');
@@ -227,30 +162,3 @@ function box_onmouseout(box)
pointer.classList.add('pointer');
}
-function toggle_corrections(aclass)
-{
- var stylesheets = document.styleSheets;
- var ssheet = null;
- for (var i=0;i