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

@@ -56,7 +56,17 @@
<xsl:comment>jQuery plugin for glossary popups. </xsl:comment>
$('a[title]').qtip({ style: { name: 'cream', tip: true } })
</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"/>