From a2c08dfee63689fdcfc78dd7629189085aba5090 Mon Sep 17 00:00:00 2001 From: shish Date: Sat, 3 Nov 2007 05:40:13 +0000 Subject: [PATCH] apparently this works in safari, and the old version didn't git-svn-id: file:///home/shish/svn/shimmie2/trunk@608 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/core_scripts/script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/core_scripts/script.js b/ext/core_scripts/script.js index e74bfb02..3b26466e 100644 --- a/ext/core_scripts/script.js +++ b/ext/core_scripts/script.js @@ -20,8 +20,11 @@ function initGray(boxname, text) { var box = byId(boxname); if(!box) return; - addEvent(box, "focus", function f() {cleargray(box, text);}, false); - addEvent(box, "blur", function f() {setgray(box, text);}, false); + var clr = function () {cleargray(box, text);}; + var set = function () {setgray(box, text);}; + + addEvent(box, "focus", clr, false); + addEvent(box, "blur", set, false); if(box.value == text) { box.style.color = "#999";