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
_.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: ->