mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 11:32:25 -05:00
ed8e36f5cd
Closes #3909
23 lines
749 B
CoffeeScript
23 lines
749 B
CoffeeScript
CocoView = require 'views/core/CocoView'
|
|
State = require 'models/State'
|
|
template = require 'templates/core/create-account-modal/confirmation-view'
|
|
forms = require 'core/forms'
|
|
|
|
module.exports = class ConfirmationView extends CocoView
|
|
id: 'confirmation-view'
|
|
template: template
|
|
|
|
events:
|
|
'click #start-btn': 'onClickStartButton'
|
|
|
|
initialize: ({ @signupState } = {}) ->
|
|
|
|
onClickStartButton: ->
|
|
classroom = @signupState.get('classroom')
|
|
if @signupState.get('path') is 'student'
|
|
# force clearing of _cc GET param from url if on /students
|
|
application.router.navigate('/', {replace: true})
|
|
application.router.navigate('/students')
|
|
else
|
|
application.router.navigate('/play')
|
|
document.location.reload()
|