diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-04-29 20:44:47 -0400 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-04-29 20:44:47 -0400 |
commit | 192df534c1568963c903e6d113a7740a8f5c673e (patch) | |
tree | f8f8921b43c191811744617c1f6de66db872bca2 | |
parent | e88ddeb66f88ba4d7fab03a6978f94131794501a (diff) | |
download | acf-core-192df534c1568963c903e6d113a7740a8f5c673e.tar.bz2 acf-core-192df534c1568963c903e6d113a7740a8f5c673e.tar.xz |
Fix automatic focus on first input in template-html.lsp
Needed to check for visible
-rw-r--r-- | app/template-html.lsp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/template-html.lsp b/app/template-html.lsp index 92550a4..16d0ec3 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -46,7 +46,7 @@ end <script type="text/javascript" src="<%= html.html_escape(pageinfo.wwwprefix..pageinfo.skin.."/"..posix.basename(pageinfo.skin)..".js") %>"></script> <script type="text/javascript"> $(function(){ - $(":input:not(:submit):enabled:not([readonly]):first").focus(); + $(":input:not(input[type=button],input[type=submit],button):enabled:not([readonly]):visible:first").focus(); }); </script> <% end -- pageinfo.skinned %> |