mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-25 21:43:47 -04:00
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: =>
|
||||
@collection = new ArticleVersionsCollection(@article.attributes.original)
|
||||
@collection.fetch()
|
||||
@collection.on('reset', @onVersionFetched)
|
||||
@collection.on('sync', @onVersionFetched)
|
||||
|
||||
onVersionFetched: =>
|
||||
@startsLoading = false
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue