mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-27 22:06:55 +00:00
Ensure list widget item title is used in getStateQualifier
Resolves a longstanding problem where the same state qualifier is generated for every member of a list. Fixes #2628
This commit is contained in:
parent
cedb953f83
commit
664225f6fd
@ -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();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user