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

14 lines
359 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 = () ->
2016-07-05 10:16:55 -04:00
event_tracking.send '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
)
]