1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
See the discussion at #2628
This commit is contained in:
Jermolene 2016-10-26 21:41:41 +01:00
parent 56640b90bb
commit 8d35178bc4
2 changed files with 2 additions and 6 deletions

View File

@ -305,8 +305,6 @@ 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();
};

View File

@ -3,9 +3,8 @@ tags: $:/tags/Macro
\define tabs(tabsList,default,state:"$:/state/tab",class,template)
<div class="tc-tab-set $class$">
<$set name="state" value=<<qualify "$state$">>>
<div class="tc-tab-buttons $class$">
<$list filter="$tabsList$" variable="currentTab"><$set name="save-currentTiddler" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<state>> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
<$list filter="$tabsList$" variable="currentTab"><$set name="save-currentTiddler" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
<$tiddler tiddler=<<save-currentTiddler>>>
<$set name="tv-wikilinks" value="no">
<$transclude tiddler=<<currentTab>> field="caption">
@ -17,7 +16,7 @@ tags: $:/tags/Macro
<div class="tc-tab-content $class$">
<$list filter="$tabsList$" variable="currentTab">
<$reveal type="match" state=<<state>> text=<<currentTab>> default="$default$">
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$">
<$transclude tiddler="$template$" mode="block">
@ -29,6 +28,5 @@ tags: $:/tags/Macro
</$list>
</div>
</$set>
</div>
\end