commit c00149c4786f8a68eefb352f93a8b234a0fc5880
parent b39994578fc761c92c886f7974777cc442d5bfce
Author: Alexander Burger <abu@software-lab.de>
Date: Wed, 30 Nov 2011 09:23:56 +0100
New try with "onblur" in Hint field
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/form.js b/lib/form.js
@@ -413,11 +413,15 @@ function addHint(i, field, str) {
if (Item >= 0)
hintOff(Item);
hintOn(i);
+ field.onblur = false;
field.onchange = false;
Item = i;
}
item.onmouseout = function() {
hintOff(Item);
+ field.onblur = function() {
+ Hint.style.visibility = "hidden";
+ }
field.onchange = function() {
return fldChg(field, item);
};