Fix problem with default attribute of edit-text widget

Setting `default=""` wasn't working
print-window-tiddler
Jeremy Ruston 2013-11-01 12:43:23 +00:00
rodzic 59d503ed6c
commit 4f4d45a972
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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");