mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
Trigger selection-related logic after accepting or rejecting changes.
This commit is contained in:
parent
19ecffd654
commit
53b18e041f
2 changed files with 3 additions and 7 deletions
|
@ -210,6 +210,7 @@ define [
|
|||
acceptChangeIds: (change_ids) ->
|
||||
@rangesTracker.removeChangeIds(change_ids)
|
||||
@updateAnnotations()
|
||||
@updateFocus()
|
||||
|
||||
rejectChangeIds: (change_ids) ->
|
||||
changes = @rangesTracker.getChanges(change_ids)
|
||||
|
@ -288,7 +289,8 @@ define [
|
|||
session.$fromReject = false
|
||||
else
|
||||
throw new Error("unknown change: #{JSON.stringify(change)}")
|
||||
|
||||
@updateFocus()
|
||||
|
||||
removeCommentId: (comment_id) ->
|
||||
@rangesTracker.removeCommentId(comment_id)
|
||||
@updateAnnotations()
|
||||
|
|
|
@ -374,9 +374,6 @@ define [
|
|||
|
||||
bulkAccept = () ->
|
||||
_doAcceptChanges $scope.reviewPanel.selectedEntryIds.slice()
|
||||
$timeout () ->
|
||||
$scope.reviewPanel.selectedEntryIds = []
|
||||
$scope.reviewPanel.nVisibleSelectedChanges = 0
|
||||
event_tracking.sendMB "rp-bulk-accept", {
|
||||
view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini',
|
||||
nEntries: $scope.reviewPanel.nVisibleSelectedChanges
|
||||
|
@ -384,9 +381,6 @@ define [
|
|||
|
||||
bulkReject = () ->
|
||||
_doRejectChanges $scope.reviewPanel.selectedEntryIds.slice()
|
||||
$timeout () ->
|
||||
$scope.reviewPanel.selectedEntryIds = []
|
||||
$scope.reviewPanel.nVisibleSelectedChanges = 0
|
||||
event_tracking.sendMB "rp-bulk-reject", {
|
||||
view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini',
|
||||
nEntries: $scope.reviewPanel.nVisibleSelectedChanges
|
||||
|
|
Loading…
Reference in a new issue