mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-08 13:56:07 +00:00
Missed off some of the refresh logic
This commit is contained in:
@@ -91,11 +91,15 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
|
|||||||
*/
|
*/
|
||||||
CheckboxWidget.prototype.refresh = function(changedTiddlers) {
|
CheckboxWidget.prototype.refresh = function(changedTiddlers) {
|
||||||
var changedAttributes = this.computeAttributes();
|
var changedAttributes = this.computeAttributes();
|
||||||
if(changedAttributes.title || changedAttributes.tag || changedAttributes["class"] || changedTiddlers[this.checkboxTitle]) {
|
if(changedAttributes.title || changedAttributes.tag || changedAttributes["class"]) {
|
||||||
this.refreshSelf();
|
this.refreshSelf();
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
if(changedTiddlers[this.checkboxTitle]) {
|
||||||
|
this.inputDomNode.checked = this.getValue();
|
||||||
|
}
|
||||||
|
return this.refreshChildren(changedTiddlers);
|
||||||
}
|
}
|
||||||
return this.refreshChildren(changedTiddlers);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user