[OPEN-ILS-DEV] Setting focus to the search box

Mike Rylander mrylander at gmail.com
Tue Sep 7 09:26:59 EDT 2010


On Tue, Sep 7, 2010 at 8:55 AM, Ben Ostrowsky <ben at esilibrary.com> wrote:
> Ah, okay.  Then may I suggest this?
>

Not looking at the code, but IIRC, focusing should already be
happening. I know it did at one time.  Perhaps we need to find why
it's not anymore first?

--miker

>
> Index: Open-ILS/web/opac/skin/default/xml/body.xml
> ===================================================================
> --- Open-ILS/web/opac/skin/default/xml/body.xml (revision 17494)
> +++ Open-ILS/web/opac/skin/default/xml/body.xml (working copy)
> @@ -45,5 +45,8 @@
>             }
>         });]]>
>     </script>
> +    <script language="javascript" type='text/javascript'>
> +      dojo.addOnLoad(document.getElementById('search_box').focus());
> +    </script>
>
>  </body>
>



-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone:  1-877-OPEN-ILS (673-6457)
 | email:  miker at esilibrary.com
 | web:  http://www.esilibrary.com


More information about the Open-ils-dev mailing list