Fix for Bug 5093 - JavaScript error in IE8 when choosing authority record
authorOwen Leonard <oleonard@myacpl.org>
Thu, 5 Aug 2010 19:55:01 +0000 (15:55 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 6 Oct 2010 12:34:58 +0000 (08:34 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tmpl

index f0bcb38..a6e4723 100644 (file)
@@ -2,9 +2,8 @@
 <Title>Koha -- Authority details</title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <script type="text/javascript">
-    window.onload = go();
-    
-    function go(){
+//<![CDATA[
+    $(document).ready(function(){
         var index_start = "<!-- TMPL_VAR NAME='index' -->";
         var whichfield;
         try {
@@ -40,7 +39,8 @@
                window.close();
             
                return false;
-    }
+    });
+//]]>
 </script>
 </head>
 <body>
@@ -55,4 +55,4 @@
 </div>
 </div>
 
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
+<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->