From cd8a94b1086c8abf6275d24ff804f757a8915cc4 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 22 Jul 2014 13:38:34 +0100 Subject: [PATCH] Auto compile on project join, not doc open --- .../web/public/coffee/ide/pdf/controllers/PdfController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 046edfb270..48405c3c26 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -4,7 +4,7 @@ define [ ], (App, LogParser) -> App.controller "PdfController", ["$scope", "$http", "ide", "$modal", "synctex", ($scope, $http, ide, $modal, synctex) -> autoCompile = true - $scope.$on "doc:opened", () -> + $scope.$on "project:joined", () -> return if !autoCompile autoCompile = false $scope.recompile(isAutoCompile: true)