Fixed the versions pages.
This commit is contained in:
parent
37f1ccdb51
commit
83e7a98869
2 changed files with 2 additions and 2 deletions
app/views/editor
|
@ -22,7 +22,7 @@ module.exports = class ArticleVersionsView extends View
|
||||||
onArticleSync: =>
|
onArticleSync: =>
|
||||||
@collection = new ArticleVersionsCollection(@article.attributes.original)
|
@collection = new ArticleVersionsCollection(@article.attributes.original)
|
||||||
@collection.fetch()
|
@collection.fetch()
|
||||||
@collection.on('reset', @onVersionFetched)
|
@collection.on('sync', @onVersionFetched)
|
||||||
|
|
||||||
onVersionFetched: =>
|
onVersionFetched: =>
|
||||||
@startsLoading = false
|
@startsLoading = false
|
||||||
|
|
|
@ -22,7 +22,7 @@ module.exports = class LevelVersionsView extends View
|
||||||
onLevelSync: =>
|
onLevelSync: =>
|
||||||
@collection = new LevelVersionsCollection(@level.attributes.original)
|
@collection = new LevelVersionsCollection(@level.attributes.original)
|
||||||
@collection.fetch()
|
@collection.fetch()
|
||||||
@collection.on('reset', @onVersionFetched)
|
@collection.on('sync', @onVersionFetched)
|
||||||
|
|
||||||
onVersionFetched: =>
|
onVersionFetched: =>
|
||||||
@startsLoading = false
|
@startsLoading = false
|
||||||
|
|
Reference in a new issue