Better defaults for radio widget

Now the “field” attribute defaults to “text”.
print-window-tiddler
Jermolene 2014-05-31 18:35:41 +01:00
rodzic 64a6544b02
commit a330cb543e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 !== "") {