Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added api-item class to options, methods, and events.

  • Loading branch information...
commit 9ac72cf1826daf76b53b6c5da5a7cced44227bdd 1 parent 217f0fb
@scottgonzalez scottgonzalez authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 entries2html-base.xsl
View
21 entries2html-base.xsl
@@ -309,6 +309,13 @@
<xsl:for-each select="options/option">
<xsl:sort select="@name"/>
<div id="option-{@name}">
+ <xsl:attribute name="class">
+ <xsl:text>api-item</xsl:text>
+ <xsl:if test="position() = 1">
+ <xsl:text> first-item</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+
<h3>
<xsl:value-of select="@name"/>
</h3>
@@ -354,6 +361,13 @@
<xsl:sort select="@name"/>
<xsl:variable name="method-name" select="@name"/>
<div id="method-{$method-name}">
+ <xsl:attribute name="class">
+ <xsl:text>api-item</xsl:text>
+ <xsl:if test="position() = 1">
+ <xsl:text> first-item</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+
<xsl:for-each select="signature | self::node()[count(signature) = 0]">
<xsl:call-template name="widget-method-event">
<xsl:with-param name="entry-name" select="$entry-name"/>
@@ -372,6 +386,13 @@
<xsl:for-each select="events/event">
<xsl:sort select="@name"/>
<div id="event-{@name}">
+ <xsl:attribute name="class">
+ <xsl:text>api-item</xsl:text>
+ <xsl:if test="position() = 1">
+ <xsl:text> first-item</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+
<xsl:call-template name="widget-method-event">
<xsl:with-param name="entry-name" select="$entry-name"/>
<xsl:with-param name="method-name" select="@name"/>
Please sign in to comment.
Something went wrong with that request. Please try again.