Bug 8217:[SIGNED-OFF] Focus on search box in staff detail page
authorAdrien Saurat <adrien.saurat@biblibre.com>
Sat, 9 Jun 2012 10:43:56 +0000 (11:43 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Sun, 10 Jun 2012 10:49:41 +0000 (12:49 +0200)
Signed-off-by: Marc Veron <veron@veron.ch>
Works exactly as expected.
Adds onload="document.getElementById('search-form').focus() to HTMP body.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index c92a891..cd203c6 100644 (file)
@@ -45,7 +45,7 @@ function verify_images() {
 </script>
 </head>
 
-<body id="catalog_detail" class="catalog">
+<body id="catalog_detail" class="catalog" onload="document.getElementById('search-form').focus();">
 
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]