mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix selectAll for angular upgrade
This commit is contained in:
parent
0eec715bb5
commit
c75cdf24b5
1 changed files with 3 additions and 9 deletions
|
@ -5,20 +5,14 @@ define [
|
|||
return {
|
||||
controller: ["$scope", ($scope) ->
|
||||
# Selecting or deselecting all should apply to all projects
|
||||
selectAll = () ->
|
||||
@selectAll = () ->
|
||||
$scope.$broadcast "select-all:select"
|
||||
|
||||
deselectAll = () ->
|
||||
@deselectAll = () ->
|
||||
$scope.$broadcast "select-all:deselect"
|
||||
|
||||
clearSelectAllState = () ->
|
||||
@clearSelectAllState = () ->
|
||||
$scope.$broadcast "select-all:clear"
|
||||
|
||||
return {
|
||||
clearSelectAllState: clearSelectAllState
|
||||
selectAll: selectAll
|
||||
deselectAll: deselectAll
|
||||
}
|
||||
]
|
||||
link: (scope, element, attrs) ->
|
||||
|
||||
|
|
Loading…
Reference in a new issue