aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2007-04-05 16:04:27 +0000
committermatthew <matthew>2007-04-05 16:04:27 +0000
commit9bba91a90d21b5a56ed0f76436c536ff386b9ea9 (patch)
tree6f3f99002f3aa726d11d0c59fe4a4b218f9868ee /web/js.js
parent369a8de66f25a1f81118ace27127371fa03fe490 (diff)
Autofocus.
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js6
1 files changed, 6 insertions, 0 deletions
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);