summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-10-29 13:53:37 +0100
committerPatrick Simianer <p@simianer.de>2015-10-29 13:53:37 +0100
commit3129ebd825db4136ae8fc1c49d7ed4d6340f8504 (patch)
tree5a07cd5344bd8199f11492718965f90063f41222 /js
parentb7a40543ff6c20c1ae5631014e8f0b4f46415fe7 (diff)
cosmetics & help
Diffstat (limited to 'js')
-rw-r--r--js/common.js7
-rw-r--r--js/lfpe.js12
2 files changed, 12 insertions, 7 deletions
diff --git a/js/common.js b/js/common.js
index 11dcdba..560f63d 100644
--- a/js/common.js
+++ b/js/common.js
@@ -20,12 +20,13 @@ function removeClass(node, className)
*
*
*/
-function toggleDisplay(node)
+function toggleDisplay(id)
{
+ node = $(id);
if (node.style.display=='none') {
- node.style.display = 'block';
+ node.fadeIn();
} else {
- node.style.display = 'none';
+ node.fadeOut();
}
return false;
diff --git a/js/lfpe.js b/js/lfpe.js
index 1cf88bf..4ec6062 100644
--- a/js/lfpe.js
+++ b/js/lfpe.js
@@ -89,7 +89,8 @@ function working()
var last_post_edit = document.getElementById("last_post_edit");
// show 'working' message
- status.style.display = "block";
+ //status.style.display = "block";
+ $("#status").fadeToggle();
// disable button and textarea
button.setAttribute("disabled", "disabled");
@@ -115,7 +116,8 @@ function not_working()
var last_post_edit = document.getElementById("last_post_edit");
// hide 'working' message
- status.style.display = "none";
+ //status.style.display = "none";
+ $("#status").fadeToggle();
// enable buttons
document.getElementById("next").removeAttribute("disabled");
@@ -188,7 +190,8 @@ function Next()
var l = document.getElementById("oov_fields").children.length;
for (var i=0; i<l; i++)
{ document.getElementById("oov_fields").children[0].remove(); }
- $("#oov_form").css("display", "none");
+ //$("#oov_form").css("display", "none");
+ $("#oov_form").toggle("blind");
next_url += "&correct="+encodeURIComponent(src.join("\t"))
+"%20%7C%7C%7C%20"+encodeURIComponent(tgt.join("\t"))
// ???
@@ -259,7 +262,8 @@ function Next()
}
oov_correct.value = true;
- $("#oov_form").css("display", "block");
+ //$("#oov_form").css("display", "block");
+ $("#oov_form").toggle("blind");
not_working();
// translation mode