mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
Use new range-tracker method.
This commit is contained in:
+1
-2
@@ -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) ->
|
||||
|
||||
+1
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user