/[Apache-SVN]/lucene/nutch/trunk/src/web/style/nutch-page.xsl
ViewVC logotype

Diff of /lucene/nutch/trunk/src/web/style/nutch-page.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- lucene/nutch/trunk/src/web/style/nutch-page.xsl	2006/03/28 11:40:47	389480
+++ lucene/nutch/trunk/src/web/style/nutch-page.xsl	2006/03/28 11:52:55	389481
@@ -20,7 +20,10 @@
 
       <script type="text/javascript">
       <xsl:comment>
-function queryfocus() { document.search.query.focus(); }
+function queryfocus() {
+  search = document.search;
+  if (search != null) { search.query.focus(); }
+}
 <xsl:text>// </xsl:text>
 </xsl:comment>
       </script>

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26