Bläddra i källkod

Merge pull request #213 from sharelatex/bg-allow-autocompile-without-code-check

allow autocompile without code check
Brian Gough 8 år sedan
förälder
incheckning
388a052647
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

+ 3 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -90,7 +90,9 @@ define [
 				# to block auto compiles. It also causes problems where server-provided
 				# linting errors aren't cleared after typing
 				if (ide.$scope.settings.syntaxValidation and !ide.$scope.hasLintingError)
-					$scope.recompile(isAutoCompileOnChange: true)
+					$scope.recompile(isAutoCompileOnChange: true) # compile if no linting errors
+				else if !ide.$scope.settings.syntaxValidation
+					$scope.recompile(isAutoCompileOnChange: true) # always recompile
 			else
 				# Extend remainder of timeout
 				autoCompileTimeout = setTimeout () ->