소스 검색

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

Henry Oswald 12 년 전
부모
커밋
ddfdc9e3f7
1개의 변경된 파일과 3개의 추가작업 그리고 7개의 파일을 삭제
  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)
 
 
 		_refreshPdfWhenProjectIsLoaded: (opts = {}) ->
 		_refreshPdfWhenProjectIsLoaded: (opts = {}) ->
-			doneCompiling = _.once =>
-				@compiling = false
-				@view.doneCompiling()
-				@syncButtonsView?.show()
-			setTimeout doneCompiling, 1000 * 60
 
 
 			if !@ide.project.get("rootDoc_id")?
 			if !@ide.project.get("rootDoc_id")?
 				new Modal
 				new Modal
@@ -145,8 +140,9 @@ define [
 				@compiling = true
 				@compiling = true
 				@_doCompile opts, (error, status, outputFiles) =>
 				@_doCompile opts, (error, status, outputFiles) =>
 					@compiling = false
 					@compiling = false
-					doneCompiling()
-
+					@view.doneCompiling()
+					@syncButtonsView?.show()
+					
 					if error?
 					if error?
 						@view.updateLog(systemError: true)
 						@view.updateLog(systemError: true)
 						@view.unsetPdf()
 						@view.unsetPdf()