summaryrefslogtreecommitdiffstats
path: root/app/template-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-02-06 13:24:15 +0000
committerTed Trask <ttrask01@yahoo.com>2012-02-06 13:24:15 +0000
commit21b89eeaeb9a2192b552f842161973777de056d7 (patch)
treeab245632b1791de250d5d61b3f7717ca86e1b7b2 /app/template-html.lsp
parent929263e84ddc10bd0c801b3be8b4cf5495c0d16d (diff)
downloadacf-core-21b89eeaeb9a2192b552f842161973777de056d7.tar.bz2
acf-core-21b89eeaeb9a2192b552f842161973777de056d7.tar.xz
Modified html template to set focus to first useable field
Diffstat (limited to 'app/template-html.lsp')
-rw-r--r--app/template-html.lsp5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/template-html.lsp b/app/template-html.lsp
index 81043b6..ae051d2 100644
--- a/app/template-html.lsp
+++ b/app/template-html.lsp
@@ -28,6 +28,11 @@ end
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="<%= html.html_escape(pageinfo.wwwprefix..pageinfo.skin.."/"..posix.basename(pageinfo.skin).."-ie.css") %>">
<![endif]-->
+<script type="text/javascript" src="<%= html.html_escape(pageinfo.wwwprefix) %>/js/jquery-latest.js"></script>
+<script type="text/javascript">
+ $(function(){
+ $(":input:not(:submit):enabled:not([readonly]):first").focus();
+ });</script>
</head>
<body>