Fixed the versions pages.

This commit is contained in:
Scott Erickson 2014-01-14 12:53:06 -08:00
parent 37f1ccdb51
commit 83e7a98869
2 changed files with 2 additions and 2 deletions
app/views/editor

View file

@ -22,7 +22,7 @@ module.exports = class ArticleVersionsView extends View
onArticleSync: =>
@collection = new ArticleVersionsCollection(@article.attributes.original)
@collection.fetch()
@collection.on('reset', @onVersionFetched)
@collection.on('sync', @onVersionFetched)
onVersionFetched: =>
@startsLoading = false

View file

@ -22,7 +22,7 @@ module.exports = class LevelVersionsView extends View
onLevelSync: =>
@collection = new LevelVersionsCollection(@level.attributes.original)
@collection.fetch()
@collection.on('reset', @onVersionFetched)
@collection.on('sync', @onVersionFetched)
onVersionFetched: =>
@startsLoading = false