Author: kpreisser Date: Wed Oct 2 23:14:25 2013 New Revision: 1528676 URL: http://svn.apache.org/r1528676 Log: Do not use the comments script in files where the comments section is disabled, to prevent JavaScript errors.
Modified: tomcat/trunk/webapps/docs/tomcat-docs.xsl Modified: tomcat/trunk/webapps/docs/tomcat-docs.xsl URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/tomcat-docs.xsl?rev=1528676&r1=1528675&r2=1528676&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/tomcat-docs.xsl (original) +++ tomcat/trunk/webapps/docs/tomcat-docs.xsl Wed Oct 2 23:14:25 2013 @@ -102,6 +102,7 @@ <xsl:variable name="comments-identifier"> <xsl:value-of select="$sitedir"/><xsl:value-of select="$subdir"/><xsl:value-of select="substring($filename,1,string-length($filename)-4)"/> </xsl:variable> + <xsl:if test="not(properties/no-comments)"> <script type="application/javascript" data-comments-identifier="{$comments-identifier}"><![CDATA[ "use strict"; // Enable strict mode @@ -134,6 +135,7 @@ }), false); })(); ]]></script> + </xsl:if> </head> <body> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org