kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix problem with default attribute of edit-text widget
Setting `default=""` wasn't workingprint-window-tiddler
rodzic
59d503ed6c
commit
4f4d45a972
|
@ -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");
|
||||
|
|
Ładowanie…
Reference in New Issue