mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add bulk rejection support.
This commit is contained in:
parent
dae66d5edf
commit
8f6d11632b
1 changed files with 13 additions and 0 deletions
|
@ -31,6 +31,12 @@ define [
|
|||
|
||||
@$scope.$on "change:reject", (e, change_id) =>
|
||||
@rejectChangeId(change_id)
|
||||
|
||||
@$scope.$on "change:bulk-accept", (e, change_ids) =>
|
||||
@bulkAcceptChangeIds(change_ids)
|
||||
|
||||
@$scope.$on "change:bulk-reject", (e, change_ids) =>
|
||||
@bulkRejectChangeIds(change_ids)
|
||||
|
||||
@$scope.$on "comment:remove", (e, comment_id) =>
|
||||
@removeCommentId(comment_id)
|
||||
|
@ -233,6 +239,13 @@ define [
|
|||
else
|
||||
throw new Error("unknown change: #{JSON.stringify(change)}")
|
||||
|
||||
bulkAcceptChangeIds: (change_ids) ->
|
||||
console.log change_id for change_id in change_ids
|
||||
|
||||
bulkRejectChangeIds: (change_ids) ->
|
||||
for change_id in change_ids
|
||||
@rejectChangeId change_id
|
||||
|
||||
removeCommentId: (comment_id) ->
|
||||
@rangesTracker.removeCommentId(comment_id)
|
||||
@updateAnnotations()
|
||||
|
|
Loading…
Reference in a new issue