From 9bba91a90d21b5a56ed0f76436c536ff386b9ea9 Mon Sep 17 00:00:00 2001 From: matthew Date: Thu, 5 Apr 2007 16:04:27 +0000 Subject: Autofocus. --- web/js.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/js.js') diff --git a/web/js.js b/web/js.js index 860da3323..bded26a84 100644 --- a/web/js.js +++ b/web/js.js @@ -9,6 +9,12 @@ * */ +YAHOO.util.Event.onContentReady('pc', function() { + if (this.value != this.defaultValue) { + this.focus(); + } +}); + function compass_pan(e, a) { YAHOO.util.Event.preventDefault(e); pan(a.x, a.y); -- cgit v1.2.3