mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-30 07:50:47 +00:00
Coding style consistency
This commit is contained in:
parent
e2cd611e45
commit
382d7e4449
@ -76,14 +76,18 @@ FieldradioWidget.prototype.getValue = function() {
|
|||||||
|
|
||||||
FieldradioWidget.prototype.setValue = function() {
|
FieldradioWidget.prototype.setValue = function() {
|
||||||
var tiddler = this.wiki.getTiddler(this.fieldradioTitle);
|
var tiddler = this.wiki.getTiddler(this.fieldradioTitle);
|
||||||
if (this.fieldradioField == "") return;
|
if(this.fieldradioField == "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var addition = {};
|
var addition = {};
|
||||||
addition[this.fieldradioField] = this.fieldradioValue;
|
addition[this.fieldradioField] = this.fieldradioValue;
|
||||||
this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition));
|
this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition));
|
||||||
};
|
};
|
||||||
|
|
||||||
FieldradioWidget.prototype.handleChangeEvent = function(event) {
|
FieldradioWidget.prototype.handleChangeEvent = function(event) {
|
||||||
if (this.inputDomNode.checked) this.setValue();
|
if (this.inputDomNode.checked) {
|
||||||
|
this.setValue();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -95,8 +99,9 @@ FieldradioWidget.prototype.execute = function() {
|
|||||||
this.fieldradioField = this.getAttribute("field");
|
this.fieldradioField = this.getAttribute("field");
|
||||||
this.fieldradioValue = this.getAttribute("value");
|
this.fieldradioValue = this.getAttribute("value");
|
||||||
this.fieldradioClass = this.getAttribute("class","");
|
this.fieldradioClass = this.getAttribute("class","");
|
||||||
if (this.fieldradioClass != "")
|
if (this.fieldradioClass !== "") {
|
||||||
this.fieldradioClass += " ";
|
this.fieldradioClass += " ";
|
||||||
|
}
|
||||||
this.fieldradioClass += "tw-fieldradio";
|
this.fieldradioClass += "tw-fieldradio";
|
||||||
// Make the child widgets
|
// Make the child widgets
|
||||||
this.makeChildWidgets();
|
this.makeChildWidgets();
|
||||||
|
Loading…
Reference in New Issue
Block a user