Use temporary tiddlers for popup locations

This commit is contained in:
Jeremy Ruston
2012-11-11 15:03:34 +00:00
parent cf15b128c1
commit f1089c1c92
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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 = {
+1 -1
View File
@@ -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);