overleaf/services/web/public/coffee/ide/share/controllers/ShareController.coffee

14 lines
370 B
CoffeeScript
Raw Normal View History

2014-07-08 07:02:26 -04:00
define [
"base"
], (App) ->
2016-07-05 09:32:56 -04:00
App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) ->
2014-07-08 07:02:26 -04:00
$scope.openShareProjectModal = () ->
event_tracking.sendCountlyOnce "ide-open-share-modal"
2016-07-05 09:32:56 -04:00
2014-07-08 07:02:26 -04:00
$modal.open(
templateUrl: "shareProjectModalTemplate"
controller: "ShareProjectModalController"
scope: $scope
)
]