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

Ben Ostrowsky ben at esilibrary.com
Tue Sep 7 08:55:15 EDT 2010


Ah, okay.  Then may I suggest this?


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>


More information about the Open-ils-dev mailing list