Bug 8217: Followup: move code to the document.ready function

Signed-off-by: Mirko Tietgen <5p4m@gmx.de>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Jonathan Druart 2012-06-18 10:45:08 +02:00 committed by Paul Poulain
parent a629cb2b6f
commit a4d2a99860

View 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' %]