From 20cf49332841afddfd64cb2c89d0aa7400857a30 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Fri, 18 Jul 2014 11:35:55 +0100 Subject: [PATCH] app -> App --- services/web/public/coffee/main/templates.coffee | 6 +++--- services/web/public/coffee/main/user-details.coffee | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/public/coffee/main/templates.coffee b/services/web/public/coffee/main/templates.coffee index fd8f58958e..2f554879df 100644 --- a/services/web/public/coffee/main/templates.coffee +++ b/services/web/public/coffee/main/templates.coffee @@ -2,7 +2,7 @@ define [ "base" ], (App) -> - app.controller "openInSlController", ($scope) -> + App.controller "openInSlController", ($scope) -> $scope.openInSlText = "Open in ShareLaTeX" $scope.isDisabled = false @@ -16,13 +16,13 @@ define [ ga('send', 'event', 'template-site', 'download-zip', $('.page-header h1').text()) - app.factory "algolia", -> + App.factory "algolia", -> if window?.sharelatex?.algolia?.app_id? client = new AlgoliaSearch(window.sharelatex.algolia?.app_id, window.sharelatex.algolia?.api_key) index = client.initIndex(window.sharelatex.algolia?.indexes?.templates) return index - app.controller "SearchController", ($scope, algolia, _) -> + App.controller "SearchController", ($scope, algolia, _) -> $scope.hits = [] $scope.safeApply = (fn)-> diff --git a/services/web/public/coffee/main/user-details.coffee b/services/web/public/coffee/main/user-details.coffee index a303086ca7..e4b661c28b 100644 --- a/services/web/public/coffee/main/user-details.coffee +++ b/services/web/public/coffee/main/user-details.coffee @@ -2,7 +2,7 @@ define [ "base" "libs/algolia-2.5.2" ], (App, algolia)-> - app.factory "Institutions", -> + App.factory "Institutions", -> new AlgoliaSearch(window.algolia.institutions.app_id, window.algolia.institutions.api_key).initIndex("institutions") App.controller "UserProfileController", ($scope, $modal, $http)->