overleaf/services/web/public/coffee/app/ide/file-tree/controllers/FileTreeEntityController.coffee
2014-06-21 22:20:37 +01:00

9 lines
No EOL
238 B
CoffeeScript

define [
"base"
], (App) ->
App.controller "FileTreeEntityController", ["$scope", ($scope) ->
$scope.select = ($event) ->
ide.fileTreeManager.forEachEntity (entity) ->
entity.selected = false
$scope.entity.selected = true
]