mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-15 06:47:25 +00:00
Better defaults for radio widget
Now the “field” attribute defaults to “text”.
This commit is contained in:
@@ -95,7 +95,7 @@ Compute the internal state of the widget
|
|||||||
RadioWidget.prototype.execute = function() {
|
RadioWidget.prototype.execute = function() {
|
||||||
// Get the parameters from the attributes
|
// Get the parameters from the attributes
|
||||||
this.radioTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
|
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.radioValue = this.getAttribute("value");
|
||||||
this.radioClass = this.getAttribute("class","");
|
this.radioClass = this.getAttribute("class","");
|
||||||
if(this.radioClass !== "") {
|
if(this.radioClass !== "") {
|
||||||
|
|||||||
Reference in New Issue
Block a user