1
0
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:
Jeremy Ruston 2013-11-01 12:43:23 +00:00
parent 59d503ed6c
commit 4f4d45a972

View File

@ -95,7 +95,7 @@ EditTextWidget.prototype.getEditInfo = function() {
value = "";
break;
}
if(this.editDefault) {
if(this.editDefault !== undefined) {
value = this.editDefault;
}
}
@ -111,7 +111,7 @@ EditTextWidget.prototype.execute = function() {
this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
this.editField = this.getAttribute("field","text");
this.editIndex = this.getAttribute("index");
this.editDefault = this.getAttribute("default","");
this.editDefault = this.getAttribute("default");
this.editClass = this.getAttribute("class");
this.editPlaceholder = this.getAttribute("placeholder");
this.editFocusPopup = this.getAttribute("focusPopup");