Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implemented proper support for <placeholder>.

  • Loading branch information...
commit 31380f169534b942d1cb73c8ba82b1761249863f 1 parent 47e8351
@scottgonzalez scottgonzalez authored
View
4 entries2html-base.xsl
@@ -636,8 +636,8 @@
<xsl:copy-of select="."/>
</xsl:template>
<xsl:template match="desc/placeholder">
- <xsl:param name="entry-name"/>
- <xsl:value-of select="$entry-name"/>
+ <xsl:variable name="name" select="@name"/>
+ <xsl:value-of select="ancestor::entry/@*[name()=$name]"/>
</xsl:template>
<!-- escape-string, from xml2json.xsl -->
View
2  includes/widget-event-create.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<event name="create">
<desc>
- Triggered when the <placeholder name="title"/> is created.
+ Triggered when the <placeholder name="name"/> is created.
</desc>
<argument name="event" type="Event"/>
<argument name="ui" type="Object"/>
View
2  includes/widget-method-destroy.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<method name="destroy">
<desc>
- Removes the <placeholder name="title"/> functionality completely. This will return the element back to its pre-init state.
+ Removes the <placeholder name="name"/> functionality completely. This will return the element back to its pre-init state.
</desc>
</method>
View
2  includes/widget-method-disable.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<method name="disable">
<desc>
- Disables the <placeholder name="title"/>.
+ Disables the <placeholder name="name"/>.
</desc>
</method>
View
2  includes/widget-method-enable.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<method name="enable">
<desc>
- Enables the <placeholder name="title"/>.
+ Enables the <placeholder name="name"/>.
</desc>
</method>
View
2  includes/widget-method-option.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<method name="option" return="jQuery">
<desc>
- Sets one or more options for the <placeholder name="title"/>.
+ Sets one or more options for the <placeholder name="name"/>.
</desc>
<signature>
<desc>Gets the value currently associated with the specified <code>optionName</code>.</desc>
View
2  includes/widget-option-disabled.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<option name="disabled" default="false">
- <desc>Disables the <placeholder name="title"/> if set to <code>true</code>.</desc>
+ <desc>Disables the <placeholder name="name"/> if set to <code>true</code>.</desc>
<type name="Boolean" />
</option>
Please sign in to comment.
Something went wrong with that request. Please try again.