From 54bed81ab9ace1df949c8c6b6b7756267d45c578 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 23 Oct 2013 19:46:31 +0100 Subject: [PATCH] Missed off some of the refresh logic --- core/modules/new_widgets/checkbox.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/modules/new_widgets/checkbox.js b/core/modules/new_widgets/checkbox.js index 8cf05b9bf..d4f562daf 100644 --- a/core/modules/new_widgets/checkbox.js +++ b/core/modules/new_widgets/checkbox.js @@ -91,11 +91,15 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of */ CheckboxWidget.prototype.refresh = function(changedTiddlers) { var changedAttributes = this.computeAttributes(); - if(changedAttributes.title || changedAttributes.tag || changedAttributes["class"] || changedTiddlers[this.checkboxTitle]) { + if(changedAttributes.title || changedAttributes.tag || changedAttributes["class"]) { this.refreshSelf(); return true; + } else { + if(changedTiddlers[this.checkboxTitle]) { + this.inputDomNode.checked = this.getValue(); + } + return this.refreshChildren(changedTiddlers); } - return this.refreshChildren(changedTiddlers); }; /*