Don't remove add comment marker when updating entries

This commit is contained in:
James Allen 2017-01-11 13:41:07 +01:00
parent f17ce2705c
commit 2e5c6d4570
2 changed files with 3 additions and 2 deletions

View file

@ -154,7 +154,9 @@ define [
# Assume we'll delete everything until we see it, then we'll remove it from this object
delete_changes = {}
delete_changes[change_id] = true for change_id, change of entries
for change_id, change of entries
if change_id != "add-comment"
delete_changes[change_id] = true
for change in rangesTracker.changes
delete delete_changes[change.id]

View file

@ -29,7 +29,6 @@ define [
scope.submitNewComment()
scope.submitNewComment = () ->
console.log scope.state.content
scope.onSubmit { content: scope.state.content }
scope.state.isAdding = false
scope.state.content = ""