From 7c9b920e26b3086b078cb989eddfa472b33e9dcf Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 12 Dec 2013 20:36:54 +0000 Subject: [PATCH] More style adjustments --- core/modules/widgets/radio.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/modules/widgets/radio.js b/core/modules/widgets/radio.js index 1daa89e3c..daa50fdc1 100644 --- a/core/modules/widgets/radio.js +++ b/core/modules/widgets/radio.js @@ -75,13 +75,12 @@ RadioWidget.prototype.getValue = function() { }; RadioWidget.prototype.setValue = function() { - var tiddler = this.wiki.getTiddler(this.radioTitle); - if(this.radioField == "") { - return; + if(this.radioField) { + var tiddler = this.wiki.getTiddler(this.radioTitle), + addition = {}; + addition[this.radioField] = this.radioValue; + this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition)); } - var addition = {}; - addition[this.radioField] = this.radioValue; - this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition)); }; RadioWidget.prototype.handleChangeEvent = function(event) {