From a330cb543eafa32486b66366e696a92a812cb26d Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 31 May 2014 18:35:41 +0100 Subject: [PATCH] Better defaults for radio widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now the “field” attribute defaults to “text”. --- core/modules/widgets/radio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/radio.js b/core/modules/widgets/radio.js index 66c4c7419..6b60f3943 100644 --- a/core/modules/widgets/radio.js +++ b/core/modules/widgets/radio.js @@ -95,7 +95,7 @@ Compute the internal state of the widget RadioWidget.prototype.execute = function() { // Get the parameters from the attributes this.radioTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.radioField = this.getAttribute("field"); + this.radioField = this.getAttribute("field","text"); this.radioValue = this.getAttribute("value"); this.radioClass = this.getAttribute("class",""); if(this.radioClass !== "") {