From 304529754d185c60f7b5491916ae9208575e4703 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Tue, 5 Jul 2016 15:16:55 +0100 Subject: [PATCH] Track editor modals. --- .../coffee/ide/hotkeys/controllers/HotkeysController.coffee | 4 +++- .../coffee/ide/share/controllers/ShareController.coffee | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/hotkeys/controllers/HotkeysController.coffee b/services/web/public/coffee/ide/hotkeys/controllers/HotkeysController.coffee index 4d0adef4fa..762721a329 100644 --- a/services/web/public/coffee/ide/hotkeys/controllers/HotkeysController.coffee +++ b/services/web/public/coffee/ide/hotkeys/controllers/HotkeysController.coffee @@ -2,8 +2,10 @@ define [ "base" "ace/ace" ], (App) -> - App.controller "HotkeysController", ($scope, $modal) -> + App.controller "HotkeysController", ($scope, $modal, event_tracking) -> $scope.openHotkeysModal = -> + event_tracking.send 'ide-open-hotkeys-modal' + $modal.open { templateUrl: "hotkeysModalTemplate" controller: "HotkeysModalController" diff --git a/services/web/public/coffee/ide/share/controllers/ShareController.coffee b/services/web/public/coffee/ide/share/controllers/ShareController.coffee index b3813b27b2..5a12cbb245 100644 --- a/services/web/public/coffee/ide/share/controllers/ShareController.coffee +++ b/services/web/public/coffee/ide/share/controllers/ShareController.coffee @@ -3,7 +3,7 @@ define [ ], (App) -> App.controller "ShareController", ["$scope", "$modal", "event_tracking", ($scope, $modal, event_tracking) -> $scope.openShareProjectModal = () -> - event_tracking.send('share-modal-opened') + event_tracking.send 'ide-open-share-modal' $modal.open( templateUrl: "shareProjectModalTemplate"