Merge "Add Taelium javascript when branding = rackspace."

This commit is contained in:
Jenkins
2014-03-21 15:42:24 +00:00
committed by Gerrit Code Review

View File

@@ -55,11 +55,21 @@
<script type="text/javascript" src="{$webhelp.common.dir}jquery/jquery.qtip-1.0.0-rc3/jquery.qtip-1.0.0-rc3.min.js">
<xsl:comment>jQuery plugin for glossary popups. </xsl:comment>
$('a[title]').qtip({ style: { name: 'cream', tip: true } })
</script>
</script>
<xsl:if test="$webhelp.war != '0' and $webhelp.war != '' and ($branding = 'rackspace' or $branding = 'rackspace-private-cloud')">
<script type="text/javascript">
var s = document.createElement( 'script' );
if ( location.hostname == "docs.rackspace.com") {
s.setAttribute('src', "https://tags.tiqcdn.com/utag/rackspace/docs/prod/utag.js");
document.body.appendChild( s ); }
else if ( location.hostname == "docs-staging.rackspace.com") {
s.setAttribute('src', "https://tags.tiqcdn.com/utag/rackspace/docs/qa/utag.js");
document.body.appendChild( s ); }
</script>
</xsl:if>
</body>
</html>
<xsl:value-of select="$chunk.append"/>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>