added condition to only a space when inserting from the popup if content already exists in the field.
This commit is contained in:
parent
5b81af7b90
commit
124ebe8938
1 changed files with 5 additions and 1 deletions
|
@ -115,7 +115,11 @@ enyo.kind({
|
|||
|
||||
insert: function(inSender, inEvent) {
|
||||
var val = this.$.tododetail.getValue();
|
||||
this.$.tododetail.setValue(val + " " + inSender.content);
|
||||
if (val.length == 0) {
|
||||
this.$.tododetail.setValue(inSender.content);
|
||||
} else {
|
||||
this.$.tododetail.setValue(val + " " + inSender.content);
|
||||
}
|
||||
this.closePopup();
|
||||
this.$.tododetail.forceFocus();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue