mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 07:14:50 +00:00
Adjust the parent stack for transclusion
This enables the dropdowns to work a bit better
This commit is contained in:
parent
cabc11d517
commit
1963c56fa9
@ -26,7 +26,8 @@ exports.info = {
|
||||
exports.executeMacro = function() {
|
||||
var titles,templateTiddler,templateText,t,title,templateParseTree,
|
||||
nodes,node,c,
|
||||
parents = this.parents;
|
||||
parents = this.parents.slice(0);
|
||||
parents.push(this.tiddlerTitle);
|
||||
// Get the tiddlers we're transcluding
|
||||
if(this.hasParameter("filter")) {
|
||||
titles = this.wiki.filterTiddlers(this.params.filter,this.tiddlerTitle);
|
||||
@ -45,7 +46,6 @@ exports.executeMacro = function() {
|
||||
if(parents.indexOf(this.params.templateTitle) !== -1) {
|
||||
return $tw.Tree.errorNode("Tiddler recursion error in <<transclude>> macro");
|
||||
}
|
||||
parents = parents.slice(0);
|
||||
parents.push(this.params.templateTitle);
|
||||
templateParseTree = this.wiki.parseTiddler(this.params.templateTitle);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user