mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 00:17:37 +00:00
Add bulk methods in controller.
This commit is contained in:
parent
05d9bf47d1
commit
dae66d5edf
1 changed files with 12 additions and 2 deletions
|
@ -328,10 +328,20 @@ define [
|
|||
event_tracking.sendMB "rp-change-rejected", { view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini' }
|
||||
|
||||
$scope.bulkAccept = () ->
|
||||
console.log $scope.reviewPanel.selectedEntryIds
|
||||
$scope.$broadcast "change:bulk-accept", $scope.reviewPanel.selectedEntryIds.slice()
|
||||
$scope.reviewPanel.selectedEntryIds = []
|
||||
event_tracking.sendMB "rp-bulk-accept", {
|
||||
view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini',
|
||||
nEntries: $scope.reviewPanel.selectedEntryIds.length
|
||||
}
|
||||
|
||||
$scope.bulkReject = () ->
|
||||
console.log $scope.reviewPanel.selectedEntryIds
|
||||
$scope.$broadcast "change:bulk-reject", $scope.reviewPanel.selectedEntryIds.slice()
|
||||
$scope.reviewPanel.selectedEntryIds = []
|
||||
event_tracking.sendMB "rp-bulk-reject", {
|
||||
view: if $scope.ui.reviewPanelOpen then $scope.reviewPanel.subView else 'mini',
|
||||
nEntries: $scope.reviewPanel.selectedEntryIds.length
|
||||
}
|
||||
|
||||
$scope.addNewComment = () ->
|
||||
$scope.$broadcast "comment:start_adding"
|
||||
|
|
Loading…
Reference in a new issue