Skip to content

Commit

Permalink
Attempt to fix progress bar expression
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Dec 20, 2024
1 parent 2176027 commit e270cbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ $series: <xsl:value-of select="$series"/>
</xsl:for-each>-->

<!-- hide the progress bar -->
<xsl:for-each select="$container/parent::div[contains-token(@class, 'span12')]">
<xsl:for-each select="$container/ancestor::div[contains-token(@class, 'span12')][contains-token(@class, 'progress')][contains-token(@class, 'active')]">
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'progress', false() ])[current-date() lt xs:date('2000-01-01')]"/>
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'progress-striped', false() ])[current-date() lt xs:date('2000-01-01')]"/>
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'active', false() ])[current-date() lt xs:date('2000-01-01')]"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ exclude-result-prefixes="#all"
</xsl:if>

<!-- hide the progress bar -->
<xsl:for-each select="$container/parent::div[contains-token(@class, 'span12')]">
<xsl:for-each select="$container/ancestor::div[contains-token(@class, 'span12')][contains-token(@class, 'progress')][contains-token(@class, 'active')]">
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'progress', false() ])[current-date() lt xs:date('2000-01-01')]"/>
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'progress-striped', false() ])[current-date() lt xs:date('2000-01-01')]"/>
<xsl:sequence select="ixsl:call(ixsl:get(., 'classList'), 'toggle', [ 'active', false() ])[current-date() lt xs:date('2000-01-01')]"/>
Expand Down

0 comments on commit e270cbc

Please sign in to comment.