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:
@@ -160,7 +160,7 @@
|
|||||||
<xsl:if test="@tag">
|
<xsl:if test="@tag">
|
||||||
<xsl:attribute name="href"><xsl:value-of select="concat('#', substring-before(concat(@tag, ' '), ' '))"/></xsl:attribute>
|
<xsl:attribute name="href"><xsl:value-of select="concat('#', substring-before(concat(@tag, ' '), ' '))"/></xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:apply-templates select="node()" mode="help-1"/>
|
<xsl:apply-templates select="node()[not(self::dactyl:strut)]" mode="help-1"/>
|
||||||
</a>
|
</a>
|
||||||
<xsl:call-template name="toc">
|
<xsl:call-template name="toc">
|
||||||
<xsl:with-param name="level" select="$level + 1"/>
|
<xsl:with-param name="level" select="$level + 1"/>
|
||||||
|
|||||||
@@ -37,21 +37,22 @@ const Tabs = Module("tabs", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_updateTabCount: function () {
|
_updateTabCount: function () {
|
||||||
for (let [i, tab] in Iterator(this.visibleTabs)) {
|
if (dactyl.has("Gecko2"))
|
||||||
function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas);
|
for (let [i, tab] in Iterator(this.visibleTabs)) {
|
||||||
if (!node("dactyl-tab-number")) {
|
function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas);
|
||||||
let nodes = {};
|
if (!node("dactyl-tab-number")) {
|
||||||
let dom = util.xmlToDom(<xul xmlns:xul={XUL} xmlns:html={XHTML}
|
let nodes = {};
|
||||||
><xul:hbox highlight="tab-number"><xul:label key="icon" align="center" highlight="TabIconNumber" class="dactyl-tab-number"/></xul:hbox
|
let dom = util.xmlToDom(<xul xmlns:xul={XUL} xmlns:html={XHTML}
|
||||||
><xul:hbox highlight="tab-number"><html:div key="label" highlight="TabNumber"/></xul:hbox
|
><xul:hbox highlight="tab-number"><xul:label key="icon" align="center" highlight="TabIconNumber" class="dactyl-tab-number"/></xul:hbox
|
||||||
></xul>.*, document, nodes);
|
><xul:hbox highlight="tab-number"><html:div key="label" highlight="TabNumber"/></xul:hbox
|
||||||
let img = node("tab-icon-image");
|
></xul>.*, document, nodes);
|
||||||
img.parentNode.appendChild(dom);
|
let img = node("tab-icon-image");
|
||||||
tab.__defineGetter__("ordinal", function () Number(nodes.icon.value));
|
img.parentNode.appendChild(dom);
|
||||||
tab.__defineSetter__("ordinal", function (i) nodes.icon.value = nodes.label.textContent = i);
|
tab.__defineGetter__("ordinal", function () Number(nodes.icon.value));
|
||||||
|
tab.__defineSetter__("ordinal", function (i) nodes.icon.value = nodes.label.textContent = i);
|
||||||
|
}
|
||||||
|
tab.ordinal = i + 1;
|
||||||
}
|
}
|
||||||
tab.ordinal = i + 1;
|
|
||||||
}
|
|
||||||
statusline.updateTabCount(true);
|
statusline.updateTabCount(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user