mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-06 08:14:25 +00:00
Use new range-tracker method.
This commit is contained in:
parent
03b8b72520
commit
499272cbb5
2 changed files with 2 additions and 4 deletions
|
@ -240,8 +240,7 @@ define [
|
|||
throw new Error("unknown change: #{JSON.stringify(change)}")
|
||||
|
||||
bulkAcceptChangeIds: (change_ids) ->
|
||||
for change_id in change_ids
|
||||
@rangesTracker.removeChangeId(change_id)
|
||||
@rangesTracker.removeChangeIds(change_ids)
|
||||
@updateAnnotations()
|
||||
|
||||
bulkRejectChangeIds: (change_ids) ->
|
||||
|
|
|
@ -80,8 +80,7 @@ define [
|
|||
|
||||
ide.socket.on "accept-changes", (doc_id, change_ids) ->
|
||||
if doc_id != $scope.editor.open_doc_id
|
||||
for change_id in change_ids
|
||||
getChangeTracker(doc_id).removeChangeId(change_id)
|
||||
getChangeTracker(doc_id).removeChangeIds(change_ids)
|
||||
else
|
||||
$scope.$broadcast "change:bulk-accept", change_ids
|
||||
updateEntries(doc_id)
|
||||
|
|
Loading…
Reference in a new issue