1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07:58 +01:00

Further disable tab numbers on Gecko 1.9.

This commit is contained in:
Kris Maglione
2010-12-20 01:57:11 -05:00
parent d735d48d77
commit fd897c1f77
2 changed files with 16 additions and 15 deletions

View File

@@ -160,7 +160,7 @@
<xsl:if test="@tag">
<xsl:attribute name="href"><xsl:value-of select="concat('#', substring-before(concat(@tag, ' '), ' '))"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates select="node()" mode="help-1"/>
<xsl:apply-templates select="node()[not(self::dactyl:strut)]" mode="help-1"/>
</a>
<xsl:call-template name="toc">
<xsl:with-param name="level" select="$level + 1"/>

View File

@@ -37,6 +37,7 @@ const Tabs = Module("tabs", {
},
_updateTabCount: function () {
if (dactyl.has("Gecko2"))
for (let [i, tab] in Iterator(this.visibleTabs)) {
function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas);
if (!node("dactyl-tab-number")) {