1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Reveal widget with lazily loaded state tiddlers

Fixes #3476
This commit is contained in:
Jermolene 2018-11-18 19:31:53 +00:00
parent e983936c30
commit 3aae643e14

View File

@ -122,6 +122,9 @@ RevealWidget.prototype.readState = function() {
(this.stateIndex ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) : (this.stateIndex ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) :
this.wiki.getTiddlerText(this.stateTitle))) || this["default"] || this.getVariable("currentTiddler") : this.wiki.getTiddlerText(this.stateTitle))) || this["default"] || this.getVariable("currentTiddler") :
(this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this["default"],this.getVariable("currentTiddler")) : this["default"]); (this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this["default"],this.getVariable("currentTiddler")) : this["default"]);
if(state === null) {
state = this["default"];
}
switch(this.type) { switch(this.type) {
case "popup": case "popup":
this.readPopupState(state); this.readPopupState(state);