summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js19
1 files changed, 18 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index e09846893..89924fed6 100644
--- a/functions.js
+++ b/functions.js
@@ -920,7 +920,7 @@ function leading_zero(p) {
return s;
}
-function closeInfoBox() {
+function closeInfoBox(cleanup) {
var box = document.getElementById('infoBox');
var shadow = document.getElementById('infoBoxShadow');
@@ -930,6 +930,8 @@ function closeInfoBox() {
box.style.display = "none";
}
+ if (cleanup) box.innerHTML = " ";
+
enableHotkeys();
}
@@ -1032,3 +1034,18 @@ function qafAdd() {
xmlhttp.send(null);
}
+function filterCR(e)
+{
+ var key;
+
+ if(window.event)
+ key = window.event.keyCode; //IE
+ else
+ key = e.which; //firefox
+
+ if(key == 13)
+ return false;
+ else
+ return true;
+}
+