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:
parent
a629cb2b6f
commit
a4d2a99860
1 changed files with 2 additions and 1 deletions
|
@ -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' %]
|
||||
|
|
Loading…
Reference in a new issue