mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-17 23:31:22 +00:00
Use temporary tiddlers for popup locations
This commit is contained in:
@@ -100,7 +100,7 @@ exports.handleEvent = function(event) {
|
||||
exports.executeMacro = function() {
|
||||
this.stateTextRef = this.params.state;
|
||||
if(this.hasParameter("qualifyTiddlerTitles")) {
|
||||
this.stateTextRef = "(" + this.parents.join(",") + "," + this.tiddlerTitle + ")" + this.stateTextRef;
|
||||
this.stateTextRef = this.stateTextRef + "(" + this.parents.join(",") + "," + this.tiddlerTitle + ")";
|
||||
}
|
||||
this.readState();
|
||||
var attributes = {
|
||||
|
||||
@@ -57,7 +57,7 @@ Popup.prototype.triggerPopup = function(options) {
|
||||
// Get the textref of the popup state tiddler
|
||||
var textRef = options.textRef;
|
||||
if(options.qualifyTiddlerTitles === "yes") {
|
||||
textRef = "(" + options.contextParents.join(",") + "," + options.contextTiddlerTitle + ")" + textRef;
|
||||
textRef = textRef + "(" + options.contextParents.join(",") + "," + options.contextTiddlerTitle + ")";
|
||||
}
|
||||
// Get the current popup state tiddler
|
||||
var value = options.wiki.getTextReference(textRef,"",options.contextTiddlerTitle);
|
||||
|
||||
Reference in New Issue
Block a user