diff options
author | matthew <matthew> | 2007-04-05 16:04:27 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-04-05 16:04:27 +0000 |
commit | 9bba91a90d21b5a56ed0f76436c536ff386b9ea9 (patch) | |
tree | 6f3f99002f3aa726d11d0c59fe4a4b218f9868ee /web/js.js | |
parent | 369a8de66f25a1f81118ace27127371fa03fe490 (diff) |
Autofocus.
Diffstat (limited to 'web/js.js')
-rw-r--r-- | web/js.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |