From 8ed2a55a82dedbf9ce2014fc2ee1cc06ecedb525 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 29 Mar 2009 07:59:53 +0000 Subject: [PATCH] formtext_hilite and formsub_hilite added --- web/commons.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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'; }); +} + -- 2.17.1