mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-30 07:50:47 +00:00
Use temporary tiddlers for popup locations
This commit is contained in:
parent
cf15b128c1
commit
f1089c1c92
@ -100,7 +100,7 @@ exports.handleEvent = function(event) {
|
|||||||
exports.executeMacro = function() {
|
exports.executeMacro = function() {
|
||||||
this.stateTextRef = this.params.state;
|
this.stateTextRef = this.params.state;
|
||||||
if(this.hasParameter("qualifyTiddlerTitles")) {
|
if(this.hasParameter("qualifyTiddlerTitles")) {
|
||||||
this.stateTextRef = "(" + this.parents.join(",") + "," + this.tiddlerTitle + ")" + this.stateTextRef;
|
this.stateTextRef = this.stateTextRef + "(" + this.parents.join(",") + "," + this.tiddlerTitle + ")";
|
||||||
}
|
}
|
||||||
this.readState();
|
this.readState();
|
||||||
var attributes = {
|
var attributes = {
|
||||||
|
@ -57,7 +57,7 @@ Popup.prototype.triggerPopup = function(options) {
|
|||||||
// Get the textref of the popup state tiddler
|
// Get the textref of the popup state tiddler
|
||||||
var textRef = options.textRef;
|
var textRef = options.textRef;
|
||||||
if(options.qualifyTiddlerTitles === "yes") {
|
if(options.qualifyTiddlerTitles === "yes") {
|
||||||
textRef = "(" + options.contextParents.join(",") + "," + options.contextTiddlerTitle + ")" + textRef;
|
textRef = textRef + "(" + options.contextParents.join(",") + "," + options.contextTiddlerTitle + ")";
|
||||||
}
|
}
|
||||||
// Get the current popup state tiddler
|
// Get the current popup state tiddler
|
||||||
var value = options.wiki.getTextReference(textRef,"",options.contextTiddlerTitle);
|
var value = options.wiki.getTextReference(textRef,"",options.contextTiddlerTitle);
|
||||||
|
@ -3,14 +3,14 @@ title: $:/templates/SearchResultTemplate
|
|||||||
{{tw-search-result{
|
{{tw-search-result{
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
<<link throughField:title hover:SearchPreviewDropDownLocation qualifyHoverTitle:yes><
|
<<link throughField:title hover:"$:/temp/SearchPreviewDropDownLocation" qualifyHoverTitle:yes><
|
||||||
<<view title text>>
|
<<view title text>>
|
||||||
>>
|
>>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
}}}
|
}}}
|
||||||
|
|
||||||
<<reveal state:SearchPreviewDropDownLocation type:popup position:right qualifyTiddlerTitles:yes><
|
<<reveal state:"$:/temp/SearchPreviewDropDownLocation" type:popup position:right qualifyTiddlerTitles:yes><
|
||||||
|
|
||||||
<div class="tw-tiddler-frame" style="color: black; width: 400px;">
|
<div class="tw-tiddler-frame" style="color: black; width: 400px;">
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/templates/TagTemplate
|
title: $:/templates/TagTemplate
|
||||||
|
|
||||||
{{btn-invisible{
|
{{btn-invisible{
|
||||||
<<button popup:TagDropDownLocation qualifyTiddlerTitles:yes><
|
<<button popup:"$:/temp/TagDropDownLocation" qualifyTiddlerTitles:yes><
|
||||||
{{label{
|
{{label{
|
||||||
<<color background:yes default:#aaa><
|
<<color background:yes default:#aaa><
|
||||||
<<view title>>
|
<<view title>>
|
||||||
@ -9,7 +9,7 @@ title: $:/templates/TagTemplate
|
|||||||
}}}
|
}}}
|
||||||
>>
|
>>
|
||||||
}}}
|
}}}
|
||||||
<<reveal state:TagDropDownLocation type:popup qualifyTiddlerTitles:yes><
|
<<reveal state:"$:/temp/TagDropDownLocation" type:popup qualifyTiddlerTitles:yes><
|
||||||
|
|
||||||
<div class="open">
|
<div class="open">
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/templates/ViewTemplate
|
title: $:/templates/ViewTemplate
|
||||||
modifier: JeremyRuston
|
modifier: JeremyRuston
|
||||||
|
|
||||||
<<button popup:FieldsDropDownLocation qualifyTiddlerTitles:yes class:"btn-invisible"><
|
<<button popup:"$:/temp/FieldsDropDownLocation" qualifyTiddlerTitles:yes class:"btn-invisible"><
|
||||||
<span class="title"><<view title>> </span>
|
<span class="title"><<view title>> </span>
|
||||||
>>
|
>>
|
||||||
<span> <<reveal state:[[$:/EditMode]] type:match text:yes>< <<button EditTiddler class:"btn-invisible"><[img[$:/core/images/edit-button.svg]]>> >> </span>
|
<span> <<reveal state:[[$:/EditMode]] type:match text:yes>< <<button EditTiddler class:"btn-invisible"><[img[$:/core/images/edit-button.svg]]>> >> </span>
|
||||||
@ -9,7 +9,7 @@ modifier: JeremyRuston
|
|||||||
|
|
||||||
<div class:"small"><<view modifier link>> <<view modified relativedate>></div>
|
<div class:"small"><<view modifier link>> <<view modified relativedate>></div>
|
||||||
|
|
||||||
<<reveal state:FieldsDropDownLocation type:popup qualifyTiddlerTitles:yes><
|
<<reveal state:"$:/temp/FieldsDropDownLocation" type:popup qualifyTiddlerTitles:yes><
|
||||||
|
|
||||||
<div class="open">
|
<div class="open">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user