diff options
author | randomdan <randomdan@localhost> | 2011-02-03 20:15:31 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-03 20:15:31 +0000 |
commit | 2adc1957fa29da43958fbae7418417f8682bb37e (patch) | |
tree | b66cf75e15bd6188845861a336d640e4b6d57d1d | |
parent | Use xsl rows for getting bug data (diff) | |
download | gentoobrowse-2adc1957fa29da43958fbae7418417f8682bb37e.tar.bz2 gentoobrowse-2adc1957fa29da43958fbae7418417f8682bb37e.tar.xz gentoobrowse-2adc1957fa29da43958fbae7418417f8682bb37e.zip |
Only include the track/untrack JS when a user is logged in
-rw-r--r-- | gentoobrowse/package.xslt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gentoobrowse/package.xslt b/gentoobrowse/package.xslt index 4f85498..2d7107f 100644 --- a/gentoobrowse/package.xslt +++ b/gentoobrowse/package.xslt @@ -21,6 +21,7 @@ } document.getElementById(name).className = 'tabvisible'; } + <xsl:if test="count(/gentoo/project2:session/project2:var[@name='loggedInUserID']) != 0"> function track(pid) { xmlhttp = new XMLHttpRequest(); @@ -43,6 +44,7 @@ document.getElementById("dotrack").style.display = "inline"; } } + </xsl:if> </script> </xsl:template> <xsl:template name="content"> |