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

This commit is contained in:
Henry Oswald 2014-06-10 18:14:28 +01:00
parent dabed896be
commit ddfdc9e3f7

View file

@ -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()