overleaf/services/web/public/coffee/app/ide/file-tree/controllers/FileTreeEntityController.coffee

9 lines
238 B
CoffeeScript
Raw Normal View History

2014-06-21 17:20:37 -04:00
define [
"base"
], (App) ->
App.controller "FileTreeEntityController", ["$scope", ($scope) ->
$scope.select = ($event) ->
ide.fileTreeManager.forEachEntity (entity) ->
entity.selected = false
$scope.entity.selected = true
]