diff --git a/core/modules/widgets/list.js b/core/modules/widgets/list.js index f4981df33..21577774c 100755 --- a/core/modules/widgets/list.js +++ b/core/modules/widgets/list.js @@ -305,6 +305,8 @@ Compute the internal state of the widget ListItemWidget.prototype.execute = function() { // Set the current list item title this.setVariable(this.parseTreeNode.variableName,this.parseTreeNode.itemTitle); + // Make sure the item title is used by widget.getStateQualifier() + this.setVariable("transclusion","{" + this.parseTreeNode.itemTitle + "}"); // Construct the child widgets this.makeChildWidgets(); }; diff --git a/core/wiki/macros/tabs.tid b/core/wiki/macros/tabs.tid index c9d44d2e3..6a1294ecb 100644 --- a/core/wiki/macros/tabs.tid +++ b/core/wiki/macros/tabs.tid @@ -3,8 +3,9 @@ tags: $:/tags/Macro \define tabs(tabsList,default,state:"$:/state/tab",class,template)
+<$set name="state" value=<>>
-<$list filter="$tabsList$" variable="currentTab"><$set name="save-currentTiddler" value=<>><$tiddler tiddler=<>><$button set=<> setTo=<> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}> +<$list filter="$tabsList$" variable="currentTab"><$set name="save-currentTiddler" value=<>><$tiddler tiddler=<>><$button set=<> setTo=<> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}> <$tiddler tiddler=<>> <$set name="tv-wikilinks" value="no"> <$transclude tiddler=<> field="caption"> @@ -16,7 +17,7 @@ tags: $:/tags/Macro
<$list filter="$tabsList$" variable="currentTab"> -<$reveal type="match" state=<> text=<> default="$default$"> +<$reveal type="match" state=<> text=<> default="$default$"> <$transclude tiddler="$template$" mode="block"> @@ -28,5 +29,6 @@ tags: $:/tags/Macro
+
\end