1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2024-12-21 09:12:10 -05:00
overleaf/services/web/public/coffee/ide/online-users/controllers/OnlineUsersController.coffee

7 lines
210 B
CoffeeScript
Raw Normal View History

2014-07-17 10:25:22 -04:00
define [
"base"
], (App) ->
App.controller "OnlineUsersController", ($scope, ide) ->
$scope.gotoUser = (user) ->
if user.doc? and user.row?
ide.editorManager.openDoc(user.doc, gotoLine: user.row + 1)