]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
update the search to call searchindex.js in the latest way
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Feb 2012 15:16:16 +0000 (10:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Feb 2012 15:16:16 +0000 (10:16 -0500)
sphinx decides we should be, [ticket:2408]

doc/build/templates/search.mako

index 5ce71ebed5b514c849203434198ab3b9954c9524..68e3fb991a3553e6fce1e82f12dbc6c1dc6eb119 100644 (file)
@@ -7,6 +7,13 @@
     ${_('Search')}
 </%block>
 
+<%block name="headers">
+    ${parent.headers()}
+    <script type="text/javascript">
+        jQuery(function() { Search.loadIndex("searchindex.js"); });
+    </script>
+</%block>
+
 <div id="searchform">
 <h3>Enter Search Terms:</h3>
 <form class="search" action="${pathto('search')}" method="get">
@@ -20,5 +27,4 @@
 
 <%block name="footer">
     ${parent.footer()}
-    <script type="text/javascript" src="searchindex.js"></script>
 </%block>