Просмотр исходного кода

Auto compile on project join, not doc open

James Allen 12 лет назад
Родитель
Сommit
cd8a94b108

+ 1 - 1
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)