added condition to only a space when inserting from the popup if content already exists in the field.

This commit is contained in:
Morgan McMillian 2012-03-21 22:18:34 -04:00
parent 5b81af7b90
commit 124ebe8938

View file

@ -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();
}