mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-04 17:16:18 +00:00
Fixed bug with refreshing transclude widget
This commit is contained in:
parent
38782ab60c
commit
95c9b7b114
@ -118,7 +118,7 @@ TranscludeWidget.prototype.generate = function() {
|
|||||||
TranscludeWidget.prototype.refreshInDom = function(changedAttributes,changedTiddlers) {
|
TranscludeWidget.prototype.refreshInDom = function(changedAttributes,changedTiddlers) {
|
||||||
// Set the class for missing tiddlers
|
// Set the class for missing tiddlers
|
||||||
if(this.targetTitle && changedTiddlers[this.targetTitle]) {
|
if(this.targetTitle && changedTiddlers[this.targetTitle]) {
|
||||||
$tw.utils.toggleClass(this.children[0].domNode,"tw-tiddler-missing",!this.renderer.renderTree.wiki.tiddlerExists(this.targetTitle));
|
$tw.utils.toggleClass(this.renderer.domNode,"tw-tiddler-missing",!this.renderer.renderTree.wiki.tiddlerExists(this.targetTitle));
|
||||||
}
|
}
|
||||||
// Check if any of our attributes have changed, or if a tiddler we're interested in has changed
|
// Check if any of our attributes have changed, or if a tiddler we're interested in has changed
|
||||||
if(changedAttributes.target || changedAttributes.template || (this.targetTitle && changedTiddlers[this.targetTitle]) || (this.templateTitle && changedTiddlers[this.templateTitle])) {
|
if(changedAttributes.target || changedAttributes.template || (this.targetTitle && changedTiddlers[this.targetTitle]) || (this.templateTitle && changedTiddlers[this.templateTitle])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user