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 = () ->
2016-08-10 12:29:43 -04:00
event_tracking.sendMBOnce "ide-open-share-modal-once"
2016-07-05 09:32:56 -04:00
2014-07-08 07:02:26 -04:00
$modal.open(
templateUrl: "shareProjectModalTemplate"
controller: "ShareProjectModalController"
scope: $scope
)
]