overleaf/services/web/public/coffee/ide/share/controllers/ShareController.coffee
2016-08-10 17:33:56 +01:00

13 lines
370 B
CoffeeScript

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