mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fix broken ladder in course
This commit is contained in:
parent
eaaea6f08b
commit
2e9ff61436
2 changed files with 2 additions and 2 deletions
|
@ -571,7 +571,7 @@ module.exports = class PlayLevelView extends RootView
|
|||
ModalClass = CourseVictoryModal if @isCourseMode() or me.isSessionless()
|
||||
if @level.isType('course-ladder')
|
||||
ModalClass = CourseVictoryModal
|
||||
options.courseInstanceID = @getQueryVariable 'league'
|
||||
options.courseInstanceID = @getQueryVariable 'course-instance' or @getQueryVariable 'league'
|
||||
ModalClass = PicoCTFVictoryModal if window.serverConfig.picoCTF
|
||||
victoryModal = new ModalClass(options)
|
||||
@openModalView(victoryModal)
|
||||
|
|
|
@ -14,7 +14,7 @@ module.exports = class CourseVictoryModal extends ModalView
|
|||
|
||||
initialize: (options) ->
|
||||
@courseID = options.courseID
|
||||
@courseInstanceID = options.courseInstanceID
|
||||
@courseInstanceID = options.courseInstanceID or @getQueryVariable 'course-instance' or @getQueryVariable 'league'
|
||||
@views = []
|
||||
|
||||
@session = options.session
|
||||
|
|
Loading…
Reference in a new issue