1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-02 20:29:10 +00:00

Coding style consistency

This commit is contained in:
Jermolene 2013-12-12 19:39:02 +00:00
parent e2cd611e45
commit 382d7e4449

View File

@ -76,14 +76,18 @@ FieldradioWidget.prototype.getValue = function() {
FieldradioWidget.prototype.setValue = function() {
var tiddler = this.wiki.getTiddler(this.fieldradioTitle);
if (this.fieldradioField == "") return;
if(this.fieldradioField == "") {
return;
}
var addition = {};
addition[this.fieldradioField] = this.fieldradioValue;
this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition));
};
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.fieldradioValue = this.getAttribute("value");
this.fieldradioClass = this.getAttribute("class","");
if (this.fieldradioClass != "")
if (this.fieldradioClass !== "") {
this.fieldradioClass += " ";
}
this.fieldradioClass += "tw-fieldradio";
// Make the child widgets
this.makeChildWidgets();