summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-21 05:28:51 +0100
committerAndrew Dolgov <[email protected]>2006-05-21 05:28:51 +0100
commit86b682ce2f0b7f20b7cc032df1845f56729fbe82 (patch)
tree1bbf75c7197ec9a721971f3708f3c9c8791f45a8 /functions.js
parentea0e4caf8080e9f285f10f277eb7d42998b10d1a (diff)
search dialog improvements, main toolbar overhaul
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 = "&nbsp;";
+
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;
+}
+