From: Matteo Nastasi (mop) <nastasi@alternativeoutput.it>
Date: Sun, 29 Mar 2009 07:59:53 +0000 (+0000)
Subject: formtext_hilite and formsub_hilite added
X-Git-Tag: 3.0.0~136
X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=8ed2a55a82dedbf9ce2014fc2ee1cc06ecedb525;p=brisk.git

formtext_hilite and formsub_hilite added
---

diff --git a/web/commons.js b/web/commons.js
index d04ef6f..c5eba32 100644
--- a/web/commons.js
+++ b/web/commons.js
@@ -572,6 +572,10 @@ function notify(st, text, tout, butt, w, h)
     this.ancestor.appendChild(box);
     
     this.toutid = setTimeout(function(obj){ obj.unblock(); }, tout, this);
+
+    formsub_hilite(clo);
+    clo.focus();
+
 }
 
 notify.prototype = {
@@ -894,3 +898,18 @@ function langtolng(lang)
     else
         return ("");
 }
+
+function formtext_hilite(obj)
+{
+    obj.className = 'input_text';
+    addEvent(obj, "focus", function () { this.className = 'input_text_hi'; });
+    addEvent(obj, "blur",  function () { this.className = 'input_text'; });
+}
+
+function formsub_hilite(obj)
+{
+    obj.className = 'input_sub';
+    addEvent(obj, "focus", function () { this.className = 'input_sub_hi'; });
+    addEvent(obj, "blur",  function () { this.className = 'input_sub'; });
+}
+