|
@ -2044,6 +2044,10 @@ ItemSet.prototype._onAddItem = function (event) { |
|
|
newItemData.end = snap ? snap(end, scale, step) : end; |
|
|
newItemData.end = snap ? snap(end, scale, step) : end; |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
newItemData = { |
|
|
|
|
|
start: snap ? snap(start, scale, step) : start, |
|
|
|
|
|
content: 'new item' |
|
|
|
|
|
}; |
|
|
newItemData[this.itemsData._fieldId] = util.randomUUID(); |
|
|
newItemData[this.itemsData._fieldId] = util.randomUUID(); |
|
|
|
|
|
|
|
|
// when default type is a range, add a default end date to the new item
|
|
|
// when default type is a range, add a default end date to the new item
|
|
|