Sfoglia il codice sorgente

removed timeout for compile on the client side, rely on serverside http request

Henry Oswald 12 anni fa
parent
commit
ddfdc9e3f7
1 ha cambiato i file con 3 aggiunte e 7 eliminazioni
  1. 3 7
      services/web/public/coffee/pdf/PdfManager.coffee

+ 3 - 7
services/web/public/coffee/pdf/PdfManager.coffee

@@ -125,11 +125,6 @@ define [
 					@_refreshPdfWhenProjectIsLoaded(opts)
 
 		_refreshPdfWhenProjectIsLoaded: (opts = {}) ->
-			doneCompiling = _.once =>
-				@compiling = false
-				@view.doneCompiling()
-				@syncButtonsView?.show()
-			setTimeout doneCompiling, 1000 * 60
 
 			if !@ide.project.get("rootDoc_id")?
 				new Modal
@@ -145,8 +140,9 @@ define [
 				@compiling = true
 				@_doCompile opts, (error, status, outputFiles) =>
 					@compiling = false
-					doneCompiling()
-
+					@view.doneCompiling()
+					@syncButtonsView?.show()
+					
 					if error?
 						@view.updateLog(systemError: true)
 						@view.unsetPdf()