"this" needs to point at searcher, not window. also comment fixes (irrelevant)
authorsenator <lebbeous@esilibrary.com>
Tue, 14 Dec 2010 02:12:13 +0000 (21:12 -0500)
committersenator <lebbeous@esilibrary.com>
Tue, 14 Dec 2010 02:12:13 +0000 (21:12 -0500)
Open-ILS/web/opac/skin/default/xml/common/js_common_postbody.xml
Open-ILS/web/opac/skin/default/xml/common/searchbar.xml

index 0827797..11079da 100644 (file)
@@ -1,7 +1,7 @@
 <script type="text/javascript"><![CDATA[
     dojo.require('openils.Util');
 
-    <!-- set up some global JS config variables, read from the Apache config -->
+    // set up some global JS config variables, read from the Apache config
     var OILS_OPAC_IMAGES_HOST = null;
     <!--#if expr="$OILS_OPAC_IMAGES_HOST"-->
         OILS_OPAC_IMAGES_HOST = '<!--#echo var="OILS_OPAC_IMAGES_HOST"-->extras/ac/jacket/';
             ).render();
         });
 
-        <!--#endif--> <!-- if rdetail.xml -->
+        <!--#endif--> /* if rdetail.xml */
 
 
         <!--#if expr="$OILS_PAGE='myopac.xml'"-->
index 970ca1d..8dc02c2 100644 (file)
@@ -9,8 +9,8 @@
         dojo.byId('search_submit').click();
     </script>
     <script type='dojo/method' event='populate'><![CDATA[
-        setTimeout(function(){
-            var searcher = this;
+        var searcher = this;
+        setTimeout(function() {
             attachEvt("result", "allRecordsReceived", function () {
                 if(!resultCompiledSearch) {
                     return;
@@ -31,7 +31,7 @@
                     csearch = searcher.addClassAnd();
                 }
             });
-        },0);
+        }, 0);
     ]]></script>
 
        <table class='color_1 color_border1' width='100%' style='border-collapse: collapse;'>