overleaf/services/web/public/coffee/ide/share/controllers/ShareController.coffee
2016-07-05 14:32:56 +01:00

13 lines
358 B
CoffeeScript

define [
"base"
], (App) ->
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
$scope.openShareProjectModal = () ->
event_tracking.send('share-modal-opened')
$modal.open(
templateUrl: "shareProjectModalTemplate"
controller: "ShareProjectModalController"
scope: $scope
)
]