kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix problem with the reveal widget not refreshing properly when used with text references
The check for changed tiddlers was failing because `this.stateTitle` contains the entire text reference, not just the tiddler title.print-window-tiddler
rodzic
dc8e84fcb7
commit
800bc639f9
|
@ -156,8 +156,10 @@ RevealWidget.prototype.refresh = function(changedTiddlers) {
|
||||||
this.refreshSelf();
|
this.refreshSelf();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
var refreshed = false;
|
var refreshed = false,
|
||||||
if(changedTiddlers[this.stateTitle]) {
|
currentlyOpen = this.isOpen;
|
||||||
|
this.readState();
|
||||||
|
if(this.isOpen !== currentlyOpen) {
|
||||||
if(this.retain === "yes") {
|
if(this.retain === "yes") {
|
||||||
this.updateState();
|
this.updateState();
|
||||||
} else {
|
} else {
|
||||||
|
|
Ładowanie…
Reference in New Issue