mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
Fix problem with default attribute of edit-text widget
Setting `default=""` wasn't working
This commit is contained in:
parent
59d503ed6c
commit
4f4d45a972
@ -95,7 +95,7 @@ EditTextWidget.prototype.getEditInfo = function() {
|
|||||||
value = "";
|
value = "";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(this.editDefault) {
|
if(this.editDefault !== undefined) {
|
||||||
value = this.editDefault;
|
value = this.editDefault;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ EditTextWidget.prototype.execute = function() {
|
|||||||
this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
|
this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
|
||||||
this.editField = this.getAttribute("field","text");
|
this.editField = this.getAttribute("field","text");
|
||||||
this.editIndex = this.getAttribute("index");
|
this.editIndex = this.getAttribute("index");
|
||||||
this.editDefault = this.getAttribute("default","");
|
this.editDefault = this.getAttribute("default");
|
||||||
this.editClass = this.getAttribute("class");
|
this.editClass = this.getAttribute("class");
|
||||||
this.editPlaceholder = this.getAttribute("placeholder");
|
this.editPlaceholder = this.getAttribute("placeholder");
|
||||||
this.editFocusPopup = this.getAttribute("focusPopup");
|
this.editFocusPopup = this.getAttribute("focusPopup");
|
||||||
|
Loading…
Reference in New Issue
Block a user