apply the bug fix to stable

git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@609 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-11-03 05:40:46 +00:00
parent a4d9261e0b
commit c471fcf9b8

View File

@ -20,8 +20,11 @@ function initGray(boxname, text) {
var box = byId(boxname); var box = byId(boxname);
if(!box) return; if(!box) return;
addEvent(box, "focus", function f() {cleargray(box, text);}, false); var clr = function () {cleargray(box, text);};
addEvent(box, "blur", function f() {setgray(box, text);}, false); var set = function () {setgray(box, text);};
addEvent(box, "focus", clr, false);
addEvent(box, "blur", set, false);
if(box.value == text) { if(box.value == text) {
box.style.color = "#999"; box.style.color = "#999";