mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
move when template publish status is refreshed to avoid loop
This commit is contained in:
parent
f5e802a7d1
commit
5fc620dc10
1 changed files with 2 additions and 1 deletions
|
@ -180,6 +180,8 @@ define [
|
|||
@model = @ide.project
|
||||
_.bindAll(this, "render");
|
||||
this.model.bind('change', this.render)
|
||||
@refreshPublishStatus()
|
||||
|
||||
|
||||
render: ->
|
||||
viewModel =
|
||||
|
@ -191,7 +193,6 @@ define [
|
|||
$(@el).html $(Mustache.to_html(@template, viewModel))
|
||||
@publishedArea = $('#publishedAsTemplateArea')
|
||||
@unpublishedArea = $('#unpublishedAsTemplateArea')
|
||||
@refreshPublishStatus()
|
||||
|
||||
|
||||
refreshPublishStatus: ->
|
||||
|
|
Loading…
Reference in a new issue