overleaf/services/web/public/coffee/app/ide/file-tree/controllers/FileTreeEntityController.coffee
2014-06-22 12:10:42 +01:00

9 lines
No EOL
250 B
CoffeeScript

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