Bug 8217: Followup: move code to the document.ready function
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 18 Jun 2012 08:45:08 +0000 (10:45 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 29 Jun 2012 14:49:32 +0000 (16:49 +0200)
Signed-off-by: Mirko Tietgen <5p4m@gmx.de>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index df0ffe2..4f00524 100644 (file)
@@ -37,6 +37,7 @@ function verify_images() {
 }
      $(document).ready(function() {
         $('#bibliodetails').tabs();
+        $('#search-form').focus();
      });
      [% IF ( AmazonEnabled ) %]$(window).load(function() {
         verify_images();
@@ -45,7 +46,7 @@ function verify_images() {
 </script>
 </head>
 
-<body id="catalog_detail" class="catalog" onload="document.getElementById('search-form').focus();">
+<body id="catalog_detail" class="catalog">
 
 [% INCLUDE 'header.inc' %]
 [% INCLUDE 'cat-search.inc' %]