1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-18 07:44:51 +00:00

Fixed refresh logic of checkbox widget

This commit is contained in:
Jeremy Ruston 2013-11-01 17:22:40 +00:00
parent 36fa41e19a
commit 6b6b444269

View File

@ -94,10 +94,12 @@ CheckboxWidget.prototype.refresh = function(changedTiddlers) {
this.refreshSelf(); this.refreshSelf();
return true; return true;
} else { } else {
var refreshed = false;
if(changedTiddlers[this.checkboxTitle]) { if(changedTiddlers[this.checkboxTitle]) {
this.inputDomNode.checked = this.getValue(); this.inputDomNode.checked = this.getValue();
refreshed = true;
} }
return this.refreshChildren(changedTiddlers); return this.refreshChildren(changedTiddlers) || refreshed;
} }
}; };