move when template publish status is refreshed to avoid loop

This commit is contained in:
Henry Oswald 2014-03-06 10:13:24 +00:00
parent f5e802a7d1
commit 5fc620dc10

View file

@ -180,6 +180,8 @@ define [
@model = @ide.project @model = @ide.project
_.bindAll(this, "render"); _.bindAll(this, "render");
this.model.bind('change', this.render) this.model.bind('change', this.render)
@refreshPublishStatus()
render: -> render: ->
viewModel = viewModel =
@ -191,7 +193,6 @@ define [
$(@el).html $(Mustache.to_html(@template, viewModel)) $(@el).html $(Mustache.to_html(@template, viewModel))
@publishedArea = $('#publishedAsTemplateArea') @publishedArea = $('#publishedAsTemplateArea')
@unpublishedArea = $('#unpublishedAsTemplateArea') @unpublishedArea = $('#unpublishedAsTemplateArea')
@refreshPublishStatus()
refreshPublishStatus: -> refreshPublishStatus: ->