mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
commit
4dde508570
1 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,7 @@ module.exports = class AuthModal extends ModalView
|
|||
afterRender: ->
|
||||
super()
|
||||
@$el.toggleClass('signup', @mode is 'signup').toggleClass('login', @mode is 'login')
|
||||
@playSound 'game-menu-open'
|
||||
|
||||
afterInsert: ->
|
||||
super()
|
||||
|
@ -105,6 +106,7 @@ module.exports = class AuthModal extends ModalView
|
|||
createUser userObject, null, window.nextURL
|
||||
|
||||
onLoggingInWithFacebook: (e) ->
|
||||
@playSound 'menu-button-click'
|
||||
modal = $('.modal:visible', @$el)
|
||||
@enableModalInProgress(modal) # TODO: part of forms
|
||||
|
||||
|
@ -155,3 +157,7 @@ module.exports = class AuthModal extends ModalView
|
|||
el.i18n()
|
||||
@$el.find('.modal-body:visible').empty().append(el)
|
||||
@$el.find('.modal-footer').remove()
|
||||
|
||||
onHidden: ->
|
||||
super()
|
||||
@playSound 'game-menu-close'
|
||||
|
|
Loading…
Reference in a new issue