mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-25 21:32:50 +00:00
Fixed problem with wildcard references in recipes not working if no tiddler files are found
This commit is contained in:
parent
c2e99647d0
commit
34fb32b81c
26
js/Recipe.js
26
js/Recipe.js
@ -171,20 +171,22 @@ Recipe.prototype.chooseTiddlers = function(recipe) {
|
|||||||
this.markers[recipeLine.marker] = [];
|
this.markers[recipeLine.marker] = [];
|
||||||
markerArray = this.markers[recipeLine.marker];
|
markerArray = this.markers[recipeLine.marker];
|
||||||
}
|
}
|
||||||
// Process each of the tiddlers referenced by the recipe line
|
if(recipeLine.tiddlers) {
|
||||||
for(var t=0; t<recipeLine.tiddlers.length; t++) {
|
// Process each of the tiddlers referenced by the recipe line
|
||||||
// Only add the tiddler to the marker if it isn't already there
|
for(var t=0; t<recipeLine.tiddlers.length; t++) {
|
||||||
var found = false;
|
// Only add the tiddler to the marker if it isn't already there
|
||||||
for(var m=0; m<markerArray.length; m++) {
|
var found = false;
|
||||||
if(markerArray[m] === recipeLine.tiddlers[t].title) {
|
for(var m=0; m<markerArray.length; m++) {
|
||||||
found = true;
|
if(markerArray[m] === recipeLine.tiddlers[t].title) {
|
||||||
|
found = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if(!found) {
|
||||||
|
markerArray.push(recipeLine.tiddlers[t].title);
|
||||||
|
}
|
||||||
|
// Add the tiddler to the store
|
||||||
|
store.addTiddler(new Tiddler(recipeLine.tiddlers[t]));
|
||||||
}
|
}
|
||||||
if(!found) {
|
|
||||||
markerArray.push(recipeLine.tiddlers[t].title);
|
|
||||||
}
|
|
||||||
// Add the tiddler to the store
|
|
||||||
store.addTiddler(new Tiddler(recipeLine.tiddlers[t]));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user